<!-- 
RSS generated by JIRA (9.4.14#940014-sha1:734e6822bbf0d45eff9af51f82432957f73aa32c) at Sat Feb 10 02:35:19 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-10462] lfs setstripe --component-add fails to recognize -c -1 as all targets</title>
                <link>https://jira.whamcloud.com/browse/LU-10462</link>
                <project id="10000" key="LU">Lustre</project>
                    <description>&lt;p&gt;Performing a &apos;lfs setstripe --component-add -E &amp;lt;val&amp;gt; -c -1 &amp;lt;file&amp;gt;&apos; on a file with an existing layout yields a new component that is striped with the default stripe count and not a stripe across all targets. Output below.&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@silverrock8:lustre]# lfs setstripe -E 2M -c 1 /p/lglossy/root/dne2/dinatale/testfile13
[root@silverrock8:lustre]# lfs getstripe /p/lglossy/root/dne2/dinatale/testfile13
/p/lglossy/root/dne2/dinatale/testfile13
&#160; lcm_layout_gen:&#160; 1
&#160; lcm_entry_count: 1
&#160;&#160;&#160; lcme_id:&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; 1
&#160;&#160;&#160; lcme_flags:&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; init
&#160;&#160;&#160; lcme_extent.e_start: 0
&#160;&#160;&#160; lcme_extent.e_end:&#160;&#160; 2097152
&#160;&#160;&#160;&#160;&#160; lmm_stripe_count:&#160; 1
&#160;&#160;&#160;&#160;&#160; lmm_stripe_size:&#160;&#160; 1048576
&#160;&#160;&#160;&#160;&#160; lmm_pattern:&#160;&#160;&#160;&#160;&#160;&#160; 1
&#160;&#160;&#160;&#160;&#160; lmm_layout_gen:&#160;&#160;&#160; 0
&#160;&#160;&#160;&#160;&#160; lmm_stripe_offset: 1
&#160;&#160;&#160;&#160;&#160; lmm_objects:
&#160;&#160;&#160;&#160;&#160; - 0: { l_ost_idx: 1, l_fid: [0x100010000:0x53242:0x0] }

[root@silverrock8:lustre]# lfs setstripe --component-add -E 4M -c -1 /p/lglossy/root/dne2/dinatale/testfile13
[root@silverrock8:lustre]# lfs getstripe /p/lglossy/root/dne2/dinatale/testfile13
/p/lglossy/root/dne2/dinatale/testfile13
&#160; lcm_layout_gen:&#160; 2
&#160; lcm_entry_count: 2
&#160;&#160;&#160; lcme_id:&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; 1
&#160;&#160;&#160; lcme_flags:&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; init
&#160;&#160;&#160; lcme_extent.e_start: 0
&#160;&#160;&#160; lcme_extent.e_end:&#160;&#160; 2097152
&#160;&#160;&#160;&#160;&#160; lmm_stripe_count:&#160; 1
&#160;&#160;&#160;&#160;&#160; lmm_stripe_size:&#160;&#160; 1048576
&#160;&#160;&#160;&#160;&#160; lmm_pattern:&#160;&#160;&#160;&#160;&#160;&#160; 1
&#160;&#160;&#160;&#160;&#160; lmm_layout_gen:&#160;&#160;&#160; 0
&#160;&#160;&#160;&#160;&#160; lmm_stripe_offset: 1
&#160;&#160;&#160;&#160;&#160; lmm_objects:
&#160;&#160;&#160;&#160;&#160; - 0: { l_ost_idx: 1, l_fid: [0x100010000:0x53242:0x0] }

&#160;&#160;&#160; lcme_id:&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; 2
&#160;&#160;&#160; lcme_flags:&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; 0
&#160;&#160;&#160; lcme_extent.e_start: 2097152
&#160;&#160;&#160; lcme_extent.e_end:&#160;&#160; 4194304
&#160;&#160;&#160;&#160;&#160; lmm_stripe_count:&#160; 1
&#160;&#160;&#160;&#160;&#160; lmm_stripe_size:&#160;&#160; 1048576
&#160;&#160;&#160;&#160;&#160; lmm_pattern:&#160;&#160;&#160;&#160;&#160;&#160; 1
&#160;&#160;&#160;&#160;&#160; lmm_layout_gen:&#160;&#160;&#160; 65535
&#160;&#160;&#160;&#160;&#160; lmm_stripe_offset: -1
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;
&lt;p&gt;In the above output, you&apos;ll notice the second component has a lmm_stripe_count of 1, our test file system has 4 OSTs.&lt;/p&gt;

&lt;p&gt;I believe I tracked down the issue to &apos;lod_declare_layout_add&apos; and how it&apos;s setting stripe count for each new component. A similar fix may need to happen to &apos;lod_striping_from_default&apos; for regular files as well. If the below patch seems adequate, I can open a new patch. I can also update the patch with &apos;lod_striping_from_default&apos; changes if it seems necessary.&lt;/p&gt;
&lt;div class=&quot;code panel&quot; style=&quot;border-width: 1px;&quot;&gt;&lt;div class=&quot;codeContent panelContent&quot;&gt;
&lt;pre class=&quot;code-java&quot;&gt;diff --git a/lustre/lod/lod_object.c b/lustre/lod/lod_object.c
index 34f4f2c..5fe2f72 100644
--- a/lustre/lod/lod_object.c
+++ b/lustre/lod/lod_object.c
@@ -2267,9 +2267,10 @@ &lt;span class=&quot;code-keyword&quot;&gt;static&lt;/span&gt; &lt;span class=&quot;code-object&quot;&gt;int&lt;/span&gt; lod_declare_layout_add(&lt;span class=&quot;code-keyword&quot;&gt;const&lt;/span&gt; struct lu_env *env,
                lod_comp-&amp;gt;llc_stripe_offset = v1-&amp;gt;lmm_stripe_offset;
 
                lod_comp-&amp;gt;llc_stripenr = v1-&amp;gt;lmm_stripe_count;
-               &lt;span class=&quot;code-keyword&quot;&gt;if&lt;/span&gt; (!lod_comp-&amp;gt;llc_stripenr ||
-                   lod_comp-&amp;gt;llc_stripenr == (__u16)-1)
+               &lt;span class=&quot;code-keyword&quot;&gt;if&lt;/span&gt; (!lod_comp-&amp;gt;llc_stripenr)
                        lod_comp-&amp;gt;llc_stripenr = desc-&amp;gt;ld_default_stripe_count;
+               &lt;span class=&quot;code-keyword&quot;&gt;else&lt;/span&gt; &lt;span class=&quot;code-keyword&quot;&gt;if&lt;/span&gt; (lod_comp-&amp;gt;llc_stripenr == (__u16)-1)
+                       lod_comp-&amp;gt;llc_stripenr = desc-&amp;gt;ld_tgt_count;
                lod_comp-&amp;gt;llc_stripe_size = v1-&amp;gt;lmm_stripe_size;
                &lt;span class=&quot;code-keyword&quot;&gt;if&lt;/span&gt; (!lod_comp-&amp;gt;llc_stripe_size)
                        lod_comp-&amp;gt;llc_stripe_size =

&#160;
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;</description>
                <environment></environment>
        <key id="50058">LU-10462</key>
            <summary>lfs setstripe --component-add fails to recognize -c -1 as all targets</summary>
                <type id="1" iconUrl="https://jira.whamcloud.com/secure/viewavatar?size=xsmall&amp;avatarId=11303&amp;avatarType=issuetype">Bug</type>
                                            <priority id="4" iconUrl="https://jira.whamcloud.com/images/icons/priorities/minor.svg">Minor</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="dinatale2">Giuseppe Di Natale</reporter>
                        <labels>
                            <label>llnl</label>
                            <label>patch</label>
                    </labels>
                <created>Fri, 5 Jan 2018 01:03:22 +0000</created>
                <updated>Fri, 2 Feb 2018 19:43:02 +0000</updated>
                            <resolved>Thu, 25 Jan 2018 05:11:13 +0000</resolved>
                                    <version>Lustre 2.10.0</version>
                                    <fixVersion>Lustre 2.11.0</fixVersion>
                    <fixVersion>Lustre 2.10.4</fixVersion>
                                        <due></due>
                            <votes>0</votes>
                                    <watches>5</watches>
                                                                            <comments>
                            <comment id="217610" author="pjones" created="Fri, 5 Jan 2018 18:31:04 +0000"  >&lt;p&gt;Bobijam&lt;/p&gt;

&lt;p&gt;Can you please look into this one?&lt;/p&gt;

&lt;p&gt;Thanks&lt;/p&gt;

&lt;p&gt;Peter&lt;/p&gt;</comment>
                            <comment id="217654" author="bobijam" created="Sat, 6 Jan 2018 04:15:19 +0000"  >&lt;p&gt;yes, I think the patch is the fix, and lod_striping_from_default() also needs it.&lt;/p&gt;</comment>
                            <comment id="217661" author="pjones" created="Sat, 6 Jan 2018 13:23:47 +0000"  >&lt;p&gt;So, &lt;a href=&quot;https://jira.whamcloud.com/secure/ViewProfile.jspa?name=dinatale2&quot; class=&quot;user-hover&quot; rel=&quot;dinatale2&quot;&gt;dinatale2&lt;/a&gt; will you push a patch into Gerrit for this fix or would you prefer that Bobijam handles it?&lt;/p&gt;</comment>
                            <comment id="217663" author="dinatale2" created="Sat, 6 Jan 2018 18:22:24 +0000"  >&lt;p&gt;Peter, I will post a patch on Monday.&lt;/p&gt;</comment>
                            <comment id="217740" author="gerrit" created="Tue, 9 Jan 2018 00:44:27 +0000"  >&lt;p&gt;Giuseppe Di Natale (dinatale2@llnl.gov) uploaded a new patch: &lt;a href=&quot;https://review.whamcloud.com/30790&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://review.whamcloud.com/30790&lt;/a&gt;&lt;br/&gt;
Subject: &lt;a href=&quot;https://jira.whamcloud.com/browse/LU-10462&quot; title=&quot;lfs setstripe --component-add fails to recognize -c -1 as all targets&quot; class=&quot;issue-link&quot; data-issue-key=&quot;LU-10462&quot;&gt;&lt;del&gt;LU-10462&lt;/del&gt;&lt;/a&gt; lod: Correct lfs --component-add striping&lt;br/&gt;
Project: fs/lustre-release&lt;br/&gt;
Branch: master&lt;br/&gt;
Current Patch Set: 1&lt;br/&gt;
Commit: be53389806e9717227a45f9c468936bfb0963511&lt;/p&gt;</comment>
                            <comment id="219091" author="gerrit" created="Thu, 25 Jan 2018 04:48:04 +0000"  >&lt;p&gt;Oleg Drokin (oleg.drokin@intel.com) merged in patch &lt;a href=&quot;https://review.whamcloud.com/30790/&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://review.whamcloud.com/30790/&lt;/a&gt;&lt;br/&gt;
Subject: &lt;a href=&quot;https://jira.whamcloud.com/browse/LU-10462&quot; title=&quot;lfs setstripe --component-add fails to recognize -c -1 as all targets&quot; class=&quot;issue-link&quot; data-issue-key=&quot;LU-10462&quot;&gt;&lt;del&gt;LU-10462&lt;/del&gt;&lt;/a&gt; lod: Correct lfs --component-add striping&lt;br/&gt;
Project: fs/lustre-release&lt;br/&gt;
Branch: master&lt;br/&gt;
Current Patch Set: &lt;br/&gt;
Commit: b7285d387c78fbd11579c577230593ba1b0be84e&lt;/p&gt;</comment>
                            <comment id="219117" author="pjones" created="Thu, 25 Jan 2018 05:11:13 +0000"  >&lt;p&gt;Landed for 2.11&lt;/p&gt;</comment>
                            <comment id="219302" author="gerrit" created="Fri, 26 Jan 2018 22:12:58 +0000"  >&lt;p&gt;Minh Diep (minh.diep@intel.com) uploaded a new patch: &lt;a href=&quot;https://review.whamcloud.com/31048&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://review.whamcloud.com/31048&lt;/a&gt;&lt;br/&gt;
Subject: &lt;a href=&quot;https://jira.whamcloud.com/browse/LU-10462&quot; title=&quot;lfs setstripe --component-add fails to recognize -c -1 as all targets&quot; class=&quot;issue-link&quot; data-issue-key=&quot;LU-10462&quot;&gt;&lt;del&gt;LU-10462&lt;/del&gt;&lt;/a&gt; lod: Correct lfs --component-add striping&lt;br/&gt;
Project: fs/lustre-release&lt;br/&gt;
Branch: b2_10&lt;br/&gt;
Current Patch Set: 1&lt;br/&gt;
Commit: 7ecef66cdf67999beb26b680c7bb73fb1c63c52b&lt;/p&gt;</comment>
                            <comment id="219898" author="gerrit" created="Fri, 2 Feb 2018 19:19:49 +0000"  >&lt;p&gt;John L. Hammond (john.hammond@intel.com) merged in patch &lt;a href=&quot;https://review.whamcloud.com/31048/&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://review.whamcloud.com/31048/&lt;/a&gt;&lt;br/&gt;
Subject: &lt;a href=&quot;https://jira.whamcloud.com/browse/LU-10462&quot; title=&quot;lfs setstripe --component-add fails to recognize -c -1 as all targets&quot; class=&quot;issue-link&quot; data-issue-key=&quot;LU-10462&quot;&gt;&lt;del&gt;LU-10462&lt;/del&gt;&lt;/a&gt; lod: Correct lfs --component-add striping&lt;br/&gt;
Project: fs/lustre-release&lt;br/&gt;
Branch: b2_10&lt;br/&gt;
Current Patch Set: &lt;br/&gt;
Commit: 50021977720a419f6df809ee43cdf687bc9f0877&lt;/p&gt;</comment>
                    </comments>
                <issuelinks>
                            <issuelinktype id="10011">
                    <name>Related</name>
                                            <outwardlinks description="is related to ">
                                                        </outwardlinks>
                                                        </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|hzzqjz:</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>
                                                                                            <customfield id="customfield_10060" key="com.atlassian.jira.plugin.system.customfieldtypes:select">
                        <customfieldname>Severity</customfieldname>
                        <customfieldvalues>
                                <customfieldvalue key="10022"><![CDATA[3]]></customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                                                                                                        </customfields>
    </item>
</channel>
</rss>