<!-- 
RSS generated by JIRA (9.4.14#940014-sha1:734e6822bbf0d45eff9af51f82432957f73aa32c) at Sat Feb 10 02:25:32 UTC 2024

It is possible to restrict the fields that are returned in this document by specifying the 'field' parameter in your request.
For example, to request only the issue key and summary append 'field=key&field=summary' to the URL of your request.
-->
<rss version="0.92" >
<channel>
    <title>Whamcloud Community JIRA</title>
    <link>https://jira.whamcloud.com</link>
    <description>This file is an XML representation of an issue</description>
    <language>en-us</language>    <build-info>
        <version>9.4.14</version>
        <build-number>940014</build-number>
        <build-date>05-12-2023</build-date>
    </build-info>


<item>
            <title>[LU-9362] PFL: Files with multiple components should not return multiple values for &#8216;lfs getstripe&#8217;</title>
                <link>https://jira.whamcloud.com/browse/LU-9362</link>
                <project id="10000" key="LU">Lustre</project>
                    <description>&lt;p&gt;Recent testing on master with files with multiple components show that several tests fail due to &#8216;lfs getstripe&#8217; with the index or the stripe count flags return multiple lines of output. If this impacts the Lustre test suites, this could impact exiting tools that use &#8216;lfs getstripe&#8217; and expect output of a single value. &lt;/p&gt;

&lt;p&gt;To demonstrate this, we have a file with three components:&lt;/p&gt;

&lt;div class=&quot;preformatted panel&quot; style=&quot;border-width: 1px;&quot;&gt;&lt;div class=&quot;preformattedContent panelContent&quot;&gt;
&lt;pre&gt;[root@eagle-48vm6 ]# lfs getstripe /lustre/scratch/d9.sanity/d2/d3
/lustre/scratch/d9.sanity/d2/d3
  lcm_layout_gen:  0
  lcm_entry_count: 3
    lcme_id:             N/A
    lcme_flags:          0
    lcme_extent.e_start: 0
    lcme_extent.e_end:   2097152
      stripe_count:  1       stripe_size:   1048576       stripe_offset: -1
    lcme_id:             N/A
    lcme_flags:          0
    lcme_extent.e_start: 2097152
    lcme_extent.e_end:   16777216
      stripe_count:  2       stripe_size:   2097152       stripe_offset: -1
    lcme_id:             N/A
    lcme_flags:          0
    lcme_extent.e_start: 16777216
    lcme_extent.e_end:   EOF
      stripe_count:  4       stripe_size:   4194304       stripe_offset: -1
[root@eagle-48vm6 ]# lfs getstripe -i /lustre/scratch/d9.sanity/d2/d3
-1
-1
-1
[root@eagle-48vm6 ]# lfs getstripe -c /lustre/scratch/d9.sanity/d2/d3
1
2
4
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;

&lt;p&gt;Andreas Dilger has commented on this issue:&lt;/p&gt;
&lt;blockquote&gt;
&lt;p&gt;&quot;lfs getstripe -c&quot; should return a single value for the stripe count.  In the design, this was the stripe count of the last instantiated component, since that is the best estimate for the number of stripes for the given file.  In the implementation (AFAIK) it was the sum of all the instantiated stripe counts, which is also reasonable.&lt;/p&gt;&lt;/blockquote&gt;

&lt;p&gt;The following tests fail due to expecting a single value from &#8216;lfs getstripe&#8217;.&lt;br/&gt;
sanity test 27i, 27w, 27A - &lt;a href=&quot;https://testing.hpdd.intel.com/test_sets/5cc43d3c-23b8-11e7-8920-5254006e85c2&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://testing.hpdd.intel.com/test_sets/5cc43d3c-23b8-11e7-8920-5254006e85c2&lt;/a&gt;&lt;/p&gt;</description>
                <environment></environment>
        <key id="45565">LU-9362</key>
            <summary>PFL: Files with multiple components should not return multiple values for &#8216;lfs getstripe&#8217;</summary>
                <type id="7" iconUrl="https://jira.whamcloud.com/images/icons/issuetypes/task_agile.png">Technical task</type>
                            <parent id="45517">LU-9349</parent>
                                    <priority id="2" iconUrl="https://jira.whamcloud.com/images/icons/priorities/critical.svg">Critical</priority>
                        <status id="5" iconUrl="https://jira.whamcloud.com/images/icons/statuses/resolved.png" description="A resolution has been taken, and it is awaiting verification by reporter. From here issues are either reopened, or are closed.">Resolved</status>
                    <statusCategory id="3" key="done" colorName="success"/>
                                    <resolution id="1">Fixed</resolution>
                                        <assignee username="bobijam">Zhenyu Xu</assignee>
                                    <reporter username="jamesanunez">James Nunez</reporter>
                        <labels>
                            <label>pfl</label>
                    </labels>
                <created>Tue, 18 Apr 2017 22:38:22 +0000</created>
                <updated>Tue, 16 May 2017 06:17:48 +0000</updated>
                            <resolved>Tue, 16 May 2017 06:17:48 +0000</resolved>
                                    <version>Lustre 2.10.0</version>
                                    <fixVersion>Lustre 2.10.0</fixVersion>
                                        <due></due>
                            <votes>0</votes>
                                    <watches>6</watches>
                                                                            <comments>
                            <comment id="192989" author="bobijam" created="Fri, 21 Apr 2017 10:19:58 +0000"  >&lt;p&gt;The patch of &lt;a href=&quot;https://jira.whamcloud.com/browse/LU-9359&quot; title=&quot;sanity test_27p: /mnt/lustre/d27p.sanity/f27p.sanity has size 4, not 80000004&quot; class=&quot;issue-link&quot; data-issue-key=&quot;LU-9359&quot;&gt;&lt;del&gt;LU-9359&lt;/del&gt;&lt;/a&gt;&#160;causes this issue.&lt;/p&gt;</comment>
                            <comment id="193098" author="adilger" created="Fri, 21 Apr 2017 23:51:09 +0000"  >&lt;p&gt;On further reflection, I think that always returning the parameters from the last instantiated component makes more sense than returning the sum of all the components.  For example, it doesn&apos;t make sense to return the sum of the stripe sizes, or the sum of the pools (what would that even be?), or the sum of the stripe indices.  The only one item that is even practical is the sum of the stripe counts, but I think this exception would be confusing, and even then it isn&apos;t clearly the best option.&lt;/p&gt;

&lt;p&gt;Returning the stripe count (and size, pool) of the last &lt;b&gt;instantiated&lt;/b&gt; component allows applications that don&apos;t know about PFL or are copying the file to a non-PFL filesystem to create a file layout that has (approximately) the same performance as the the (normally) largest part of the file, and what would be used if more data is being written to the file (at least until it grows into the next component).  This would preserve the &quot;use best layout based on file size&quot; property of PFL even if the file has to be flattened to use a plain layout.&lt;/p&gt;</comment>
                            <comment id="194449" author="adilger" created="Thu, 4 May 2017 14:31:18 +0000"  >&lt;p&gt;Bobijam, can you please provide a fix for this issue. As mentioned above, I think when asking for a simple value that the result from the last instantiated component. &lt;/p&gt;</comment>
                            <comment id="194452" author="gerrit" created="Thu, 4 May 2017 14:48:54 +0000"  >&lt;p&gt;Bobi Jam (bobijam@hotmail.com) uploaded a new patch: &lt;a href=&quot;https://review.whamcloud.com/26947&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://review.whamcloud.com/26947&lt;/a&gt;&lt;br/&gt;
Subject: &lt;a href=&quot;https://jira.whamcloud.com/browse/LU-9362&quot; title=&quot;PFL: Files with multiple components should not return multiple values for &#8216;lfs getstripe&#8217;&quot; class=&quot;issue-link&quot; data-issue-key=&quot;LU-9362&quot;&gt;&lt;del&gt;LU-9362&lt;/del&gt;&lt;/a&gt; lfs: getstripe print last init-ed component info&lt;br/&gt;
Project: fs/lustre-release&lt;br/&gt;
Branch: master&lt;br/&gt;
Current Patch Set: 1&lt;br/&gt;
Commit: b7e74920805416ba5eef6caa556d7c9a217bbd37&lt;/p&gt;</comment>
                            <comment id="195939" author="gerrit" created="Tue, 16 May 2017 05:44:41 +0000"  >&lt;p&gt;Oleg Drokin (oleg.drokin@intel.com) merged in patch &lt;a href=&quot;https://review.whamcloud.com/26947/&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://review.whamcloud.com/26947/&lt;/a&gt;&lt;br/&gt;
Subject: &lt;a href=&quot;https://jira.whamcloud.com/browse/LU-9362&quot; title=&quot;PFL: Files with multiple components should not return multiple values for &#8216;lfs getstripe&#8217;&quot; class=&quot;issue-link&quot; data-issue-key=&quot;LU-9362&quot;&gt;&lt;del&gt;LU-9362&lt;/del&gt;&lt;/a&gt; lfs: getstripe print last init-ed component info&lt;br/&gt;
Project: fs/lustre-release&lt;br/&gt;
Branch: master&lt;br/&gt;
Current Patch Set: &lt;br/&gt;
Commit: da47e9c0320c9da342b7366e45a010e5a9ba239d&lt;/p&gt;</comment>
                    </comments>
                <issuelinks>
                            <issuelinktype id="10323">
                    <name>Gantt End to End</name>
                                            <outwardlinks description="has to be finished together with">
                                        <issuelink>
            <issuekey id="45555">LU-9359</issuekey>
        </issuelink>
                            </outwardlinks>
                                                        </issuelinktype>
                            <issuelinktype id="10011">
                    <name>Related</name>
                                            <outwardlinks description="is related to ">
                                        <issuelink>
            <issuekey id="42916">LU-8998</issuekey>
        </issuelink>
                            </outwardlinks>
                                                                <inwardlinks description="is related to">
                                        <issuelink>
            <issuekey id="45796">LU-9424</issuekey>
        </issuelink>
                            </inwardlinks>
                                    </issuelinktype>
                    </issuelinks>
                <attachments>
                    </attachments>
                <subtasks>
                    </subtasks>
                <customfields>
                                                                                                                                                                <customfield id="customfield_10890" key="com.atlassian.jira.plugins.jira-development-integration-plugin:devsummary">
                        <customfieldname>Development</customfieldname>
                        <customfieldvalues>
                            
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                                                                                                        <customfield id="customfield_10390" key="com.pyxis.greenhopper.jira:gh-lexo-rank">
                        <customfieldname>Rank</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>1|hzzajj:</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_10090" key="com.pyxis.greenhopper.jira:gh-global-rank">
                        <customfieldname>Rank (Obsolete)</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>9223372036854775807</customfieldvalue>
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                                                                                                                                                                </customfields>
    </item>
</channel>
</rss>