<!-- 
RSS generated by JIRA (9.4.14#940014-sha1:734e6822bbf0d45eff9af51f82432957f73aa32c) at Sat Feb 10 03:15:11 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-15070] client does not inherit default directory layout if changed</title>
                <link>https://jira.whamcloud.com/browse/LU-15070</link>
                <project id="10000" key="LU">Lustre</project>
                    <description>&lt;p&gt;If a directory is created and a default directory layout is added to it, the client is not aware that the new default layout exists because of the xattr cache, so the client does not take this into account when creating the directory.&lt;/p&gt;

&lt;p&gt;This can be seen clearly by setting a round-robin default layout on a directory below the normal 3-level round-robin default root layout, but I suspect it is always true:&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;# mkdir -p /mnt/testfs/rr1/rr2/rr3/sub4
# lfs setdirstripe -D -c 1 -i -1 --max-inherit-rr=3 /mnt/testfs/rr1/rr2/rr3/sub4
# mkdir /mnt/testfs/rr1/rr2/rr3/sub4/d{1..64}
# lfs getdirstripe -m /mnt/testfs/rr1/rr2/rr3/sub4/d{1..64} | sort | uniq -c
     64 1
# lctl set_param ldlm.namespaces.*.lru_size=clear
# mkdir /mnt/testfs/rr1/rr2/rr3/sub4/dd{1..64}
# lfs getdirstripe -m /mnt/testfs/rr1/rr2/rr3/sub4/dd{1..64} | sort | uniq -c
      16 0
      16 1
      16 2
      16 3
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;
&lt;p&gt;The default layout itself is inherited by the &lt;tt&gt;d&amp;#42;&lt;/tt&gt; and &lt;tt&gt;dd&amp;#42;&lt;/tt&gt; directories, because this is done locally to the MDT, but the decision to do round-robin allocation (and other directory default layouts) is not seen by the client until the directory lock/inode is cancelled and refreshed from the MDT.&lt;/p&gt;

&lt;p&gt;When &quot;&lt;tt&gt;lfs setdirstripe -D&lt;/tt&gt;&quot; is run on the MDS, it should revoke the &lt;tt&gt;MDS_INODELOCK_XATTR&lt;/tt&gt; lock bit from this directory on all clients, and the client doing this operation itself should include this lock for ELC along with the RPC.  &lt;/p&gt;</description>
                <environment></environment>
        <key id="66529">LU-15070</key>
            <summary>client does not inherit default directory layout if changed</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="laisiyao">Lai Siyao</assignee>
                                    <reporter username="adilger">Andreas Dilger</reporter>
                        <labels>
                    </labels>
                <created>Wed, 6 Oct 2021 21:51:15 +0000</created>
                <updated>Mon, 29 Nov 2021 23:10:47 +0000</updated>
                            <resolved>Wed, 3 Nov 2021 03:43:22 +0000</resolved>
                                    <version>Lustre 2.15.0</version>
                                    <fixVersion>Lustre 2.15.0</fixVersion>
                                        <due></due>
                            <votes>0</votes>
                                    <watches>6</watches>
                                                                            <comments>
                            <comment id="314983" author="laisiyao" created="Fri, 8 Oct 2021 04:22:03 +0000"  >&lt;p&gt;Strange I can&apos;t reproduce this on master and exa6 code, even if I copied the script and run.&lt;/p&gt;

&lt;p&gt;According to the code, when default LMV is set, MDT will revoke XATTR|LOOKUP lock.&lt;/p&gt;</comment>
                            <comment id="315517" author="gerrit" created="Thu, 14 Oct 2021 08:50:28 +0000"  >&lt;p&gt;&quot;Lai Siyao &amp;lt;lai.siyao@whamcloud.com&amp;gt;&quot; uploaded a new patch: &lt;a href=&quot;https://review.whamcloud.com/45236&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://review.whamcloud.com/45236&lt;/a&gt;&lt;br/&gt;
Subject: &lt;a href=&quot;https://jira.whamcloud.com/browse/LU-15070&quot; title=&quot;client does not inherit default directory layout if changed&quot; class=&quot;issue-link&quot; data-issue-key=&quot;LU-15070&quot;&gt;&lt;del&gt;LU-15070&lt;/del&gt;&lt;/a&gt; mdt: set default LMV for remote dir&lt;br/&gt;
Project: fs/lustre-release&lt;br/&gt;
Branch: master&lt;br/&gt;
Current Patch Set: 1&lt;br/&gt;
Commit: cd891b3dfbc47de9868d85b4d514ee97124ad2a5&lt;/p&gt;</comment>
                            <comment id="315518" author="gerrit" created="Thu, 14 Oct 2021 08:50:28 +0000"  >&lt;p&gt;&quot;Lai Siyao &amp;lt;lai.siyao@whamcloud.com&amp;gt;&quot; uploaded a new patch: &lt;a href=&quot;https://review.whamcloud.com/45237&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://review.whamcloud.com/45237&lt;/a&gt;&lt;br/&gt;
Subject: &lt;a href=&quot;https://jira.whamcloud.com/browse/LU-15070&quot; title=&quot;client does not inherit default directory layout if changed&quot; class=&quot;issue-link&quot; data-issue-key=&quot;LU-15070&quot;&gt;&lt;del&gt;LU-15070&lt;/del&gt;&lt;/a&gt; llite: update default LMV upon any change&lt;br/&gt;
Project: fs/lustre-release&lt;br/&gt;
Branch: master&lt;br/&gt;
Current Patch Set: 1&lt;br/&gt;
Commit: affdfbd78befddf7d25b7609ab78d207b093c4b0&lt;/p&gt;</comment>
                            <comment id="317297" author="gerrit" created="Wed, 3 Nov 2021 02:42:17 +0000"  >&lt;p&gt;&quot;Oleg Drokin &amp;lt;green@whamcloud.com&amp;gt;&quot; merged in patch &lt;a href=&quot;https://review.whamcloud.com/45236/&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://review.whamcloud.com/45236/&lt;/a&gt;&lt;br/&gt;
Subject: &lt;a href=&quot;https://jira.whamcloud.com/browse/LU-15070&quot; title=&quot;client does not inherit default directory layout if changed&quot; class=&quot;issue-link&quot; data-issue-key=&quot;LU-15070&quot;&gt;&lt;del&gt;LU-15070&lt;/del&gt;&lt;/a&gt; mdt: revoke remote LOOKUP lock for default LMV&lt;br/&gt;
Project: fs/lustre-release&lt;br/&gt;
Branch: master&lt;br/&gt;
Current Patch Set: &lt;br/&gt;
Commit: b4645b5469c0722fdf66697379be878c071839cf&lt;/p&gt;</comment>
                            <comment id="317298" author="gerrit" created="Wed, 3 Nov 2021 02:42:22 +0000"  >&lt;p&gt;&quot;Oleg Drokin &amp;lt;green@whamcloud.com&amp;gt;&quot; merged in patch &lt;a href=&quot;https://review.whamcloud.com/45237/&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://review.whamcloud.com/45237/&lt;/a&gt;&lt;br/&gt;
Subject: &lt;a href=&quot;https://jira.whamcloud.com/browse/LU-15070&quot; title=&quot;client does not inherit default directory layout if changed&quot; class=&quot;issue-link&quot; data-issue-key=&quot;LU-15070&quot;&gt;&lt;del&gt;LU-15070&lt;/del&gt;&lt;/a&gt; llite: update default LMV upon any change&lt;br/&gt;
Project: fs/lustre-release&lt;br/&gt;
Branch: master&lt;br/&gt;
Current Patch Set: &lt;br/&gt;
Commit: f3314706b4e5c21f14908650decd92a30fdc1db9&lt;/p&gt;</comment>
                            <comment id="317324" author="pjones" created="Wed, 3 Nov 2021 03:43:22 +0000"  >&lt;p&gt;Landed for 2.15&lt;/p&gt;</comment>
                    </comments>
                <issuelinks>
                            <issuelinktype id="10011">
                    <name>Related</name>
                                            <outwardlinks description="is related to ">
                                                        </outwardlinks>
                                                                <inwardlinks description="is related to">
                                        <issuelink>
            <issuekey id="32909">LU-7357</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|i026jr:</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>