<!-- 
RSS generated by JIRA (9.4.14#940014-sha1:734e6822bbf0d45eff9af51f82432957f73aa32c) at Sat Feb 10 03:16:18 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-15200] &quot;lfs getdirstripe -D subdir&quot; does not show correct inherited layout</title>
                <link>https://jira.whamcloud.com/browse/LU-15200</link>
                <project id="10000" key="LU">Lustre</project>
                    <description>&lt;p&gt;The default directory layout printed for non-root directories does not correctly show the actual layout specified on the root directory:&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;# lfs getdirstripe -D /mnt/testfs
lmv_stripe_count: 1 lmv_stripe_offset: -1 lmv_hash_type: none lmv_max_inherit: -1 lmv_max_inherit_rr: 3
# lfs getdirstripe -D /mnt/testfs/etc 
lmv_stripe_count: 0 lmv_stripe_offset: -1 lmv_hash_type: none lmv_max_inherit: -1 lmv_max_inherit_rr: 0
# getfattr -d -m - -e hex /mnt/testfs /mnt/testfs/etc
# file: mnt/testfs
trusted.dmv=0xd00cd30c01000000ffffffff000000000000000000030000000000000000000000000000000000000000000000000000
trusted.lma=0x000000000000000007000000020000000100000000000000
# file: mnt/testfs/etc
trusted.link=0xdff1ea11010000002d000000000000000000000000000000001500000002000000070000000100000000657463
trusted.lma=0x000000000000000002040000020000000100000000000000
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;

&lt;p&gt;The default directory layout stored on the root directory is printed properly, and is correctly inherited by actual subdirectories created in the filesystem, but this is not what is shown by &quot;&lt;tt&gt;lfs getdirstripe -D&lt;/tt&gt;&quot; on the client.  It is printing a &quot;generic&quot; default layout if no &lt;tt&gt;trusted.lmv&lt;/tt&gt; xattr is found.&lt;/p&gt;

&lt;p&gt;Instead, it would be more correct to return the inherited &lt;tt&gt;trusted.lmv&lt;/tt&gt; from the root directory, if it exists and the &lt;tt&gt;lmv_max_inherit&lt;/tt&gt; depth allows it, along with reducing &lt;tt&gt;lmv_max_inherit&lt;/tt&gt; and &lt;tt&gt;lmv_max_inherit_rr&lt;/tt&gt; by &lt;tt&gt;lli_depth&lt;/tt&gt; if they are not &lt;tt&gt;-1&lt;/tt&gt;.&lt;/p&gt;</description>
                <environment></environment>
        <key id="67095">LU-15200</key>
            <summary>&quot;lfs getdirstripe -D subdir&quot; does not show correct inherited layout</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>Tue, 9 Nov 2021 03:35:37 +0000</created>
                <updated>Wed, 22 Jun 2022 00:12:53 +0000</updated>
                            <resolved>Wed, 26 Jan 2022 14:19:32 +0000</resolved>
                                                    <fixVersion>Lustre 2.15.0</fixVersion>
                                        <due></due>
                            <votes>0</votes>
                                    <watches>5</watches>
                                                                            <comments>
                            <comment id="317785" author="adilger" created="Tue, 9 Nov 2021 23:06:16 +0000"  >&lt;p&gt;It looks like &lt;tt&gt;ll_dir_getstripe_default()&lt;/tt&gt; is specifically excluding fetching the default LMV, but it should do that since &lt;a href=&quot;https://jira.whamcloud.com/browse/LU-14792&quot; title=&quot;DNE3: enable filesystem-wide default LMV&quot; class=&quot;issue-link&quot; data-issue-key=&quot;LU-14792&quot;&gt;&lt;del&gt;LU-14792&lt;/del&gt;&lt;/a&gt; now has a filesystem-wide default directory layout for the filesystem on the root directory.&lt;/p&gt;</comment>
                            <comment id="318252" author="gerrit" created="Mon, 15 Nov 2021 14:44:57 +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/45570&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://review.whamcloud.com/45570&lt;/a&gt;&lt;br/&gt;
Subject: &lt;a href=&quot;https://jira.whamcloud.com/browse/LU-15200&quot; title=&quot;&amp;quot;lfs getdirstripe -D subdir&amp;quot; does not show correct inherited layout&quot; class=&quot;issue-link&quot; data-issue-key=&quot;LU-15200&quot;&gt;&lt;del&gt;LU-15200&lt;/del&gt;&lt;/a&gt; llite: &quot;lfs getdirstripe -D&quot; shows inherit layout&lt;br/&gt;
Project: fs/lustre-release&lt;br/&gt;
Branch: master&lt;br/&gt;
Current Patch Set: 1&lt;br/&gt;
Commit: 3bb59e4ffa2e877eeb3ceb24dc848b54f0a7dbfb&lt;/p&gt;</comment>
                            <comment id="318476" author="gerrit" created="Thu, 18 Nov 2021 01:18:45 +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/45599&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://review.whamcloud.com/45599&lt;/a&gt;&lt;br/&gt;
Subject: &lt;a href=&quot;https://jira.whamcloud.com/browse/LU-15200&quot; title=&quot;&amp;quot;lfs getdirstripe -D subdir&amp;quot; does not show correct inherited layout&quot; class=&quot;issue-link&quot; data-issue-key=&quot;LU-15200&quot;&gt;&lt;del&gt;LU-15200&lt;/del&gt;&lt;/a&gt; llite: revalidate dentry if LOOKUP lock fetched&lt;br/&gt;
Project: fs/lustre-release&lt;br/&gt;
Branch: master&lt;br/&gt;
Current Patch Set: 1&lt;br/&gt;
Commit: 88c7ef277631143e39c7eeb0a49dbbc33aa38f3a&lt;/p&gt;</comment>
                            <comment id="322249" author="gerrit" created="Tue, 11 Jan 2022 06:18:53 +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/45599/&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://review.whamcloud.com/45599/&lt;/a&gt;&lt;br/&gt;
Subject: &lt;a href=&quot;https://jira.whamcloud.com/browse/LU-15200&quot; title=&quot;&amp;quot;lfs getdirstripe -D subdir&amp;quot; does not show correct inherited layout&quot; class=&quot;issue-link&quot; data-issue-key=&quot;LU-15200&quot;&gt;&lt;del&gt;LU-15200&lt;/del&gt;&lt;/a&gt; llite: revalidate dentry if LOOKUP lock fetched&lt;br/&gt;
Project: fs/lustre-release&lt;br/&gt;
Branch: master&lt;br/&gt;
Current Patch Set: &lt;br/&gt;
Commit: 92fadf9cc1d06b21b482a262ff66f435814a13f8&lt;/p&gt;</comment>
                            <comment id="323961" author="gerrit" created="Wed, 26 Jan 2022 05:15:54 +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/45570/&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://review.whamcloud.com/45570/&lt;/a&gt;&lt;br/&gt;
Subject: &lt;a href=&quot;https://jira.whamcloud.com/browse/LU-15200&quot; title=&quot;&amp;quot;lfs getdirstripe -D subdir&amp;quot; does not show correct inherited layout&quot; class=&quot;issue-link&quot; data-issue-key=&quot;LU-15200&quot;&gt;&lt;del&gt;LU-15200&lt;/del&gt;&lt;/a&gt; llite: &quot;lfs getdirstripe -D&quot; shows inherit layout&lt;br/&gt;
Project: fs/lustre-release&lt;br/&gt;
Branch: master&lt;br/&gt;
Current Patch Set: &lt;br/&gt;
Commit: 61b1fad9e3fb21edcc0e713c89a3bfaeba9c883e&lt;/p&gt;</comment>
                            <comment id="324005" author="pjones" created="Wed, 26 Jan 2022 14:19:32 +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 ">
                                        <issuelink>
            <issuekey id="64857">LU-14792</issuekey>
        </issuelink>
                            </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|i029fr:</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>