<!-- 
RSS generated by JIRA (9.4.14#940014-sha1:734e6822bbf0d45eff9af51f82432957f73aa32c) at Sat Feb 10 01:35:54 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-3670] some trusted xattrs are not coherent on the client</title>
                <link>https://jira.whamcloud.com/browse/LU-3670</link>
                <project id="10000" key="LU">Lustre</project>
                    <description>&lt;p&gt;The value of trusted.link should change as hard links are added to files.&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;# llmount.sh
# cd /mnt/lustre
# touch f0
# getfattr -n trusted.link f0
# file: f0
trusted.link=0s3/HqEQEAAAAsAAAAAAAAAAAAAAAAAAAAABQAAAACAAAABwAAAAEAAAAAZjA=

# getfattr -n trusted.link f0 | md5sum
f0ea62a3d3c5efd8329b1147bf97ce7b  -
# ln f0 f1
# getfattr -n trusted.link f0 | md5sum
f0ea62a3d3c5efd8329b1147bf97ce7b  -
# sys_lea f0
[0x200000007:0x1:0x0] &apos;f0&apos;
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;

&lt;p&gt;Before extended attribute caching landed the trusted.link attribute is updated and the interpreting the link EA has the expected result:&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;# cd /mnt/lustre
# touch f0
# getfattr -n trusted.link f0
# file: f0
trusted.link=0s3/HqEQEAAAAsAAAAAAAAAAAAAAAAAAAAABQAAAACAAAABwAAAAEAAAAAZjA=

# getfattr -n trusted.link f0 | md5sum
f0ea62a3d3c5efd8329b1147bf97ce7b  -
# ln f0 f1
# getfattr -n trusted.link f0 | md5sum
53753efeb8ce17a87df257ee317c7b68  -
# sys_lea f0
[0x200000007:0x1:0x0] &apos;f0&apos;
[0x200000007:0x1:0x0] &apos;f1&apos;
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;

&lt;p&gt;The lov xattrs appear to be immune to this issue since they are handled by special cases in ll_&lt;/p&gt;
{get,set}
&lt;p&gt;xattr() but I did not verify this in all cases. Some other attributes (trusted.hsm) which are modified outside of the normal MDS_SETXATTR path are also affected.&lt;/p&gt;</description>
                <environment></environment>
        <key id="20097">LU-3670</key>
            <summary>some trusted xattrs are not coherent on the client</summary>
                <type id="1" iconUrl="https://jira.whamcloud.com/secure/viewavatar?size=xsmall&amp;avatarId=11303&amp;avatarType=issuetype">Bug</type>
                                            <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="jhammond">John Hammond</assignee>
                                    <reporter username="jhammond">John Hammond</reporter>
                        <labels>
                            <label>llite</label>
                            <label>mdt</label>
                            <label>patch</label>
                            <label>xattr</label>
                    </labels>
                <created>Tue, 30 Jul 2013 16:00:28 +0000</created>
                <updated>Thu, 26 Sep 2013 20:00:30 +0000</updated>
                            <resolved>Thu, 26 Sep 2013 20:00:30 +0000</resolved>
                                    <version>Lustre 2.5.0</version>
                                    <fixVersion>Lustre 2.5.0</fixVersion>
                                        <due></due>
                            <votes>0</votes>
                                    <watches>10</watches>
                                                                            <comments>
                            <comment id="63327" author="panda" created="Wed, 31 Jul 2013 00:27:34 +0000"  >&lt;p&gt;It looks like the following extended attributes can be modified in the mdd or osd layer:&lt;/p&gt;

&lt;p&gt;XATTR_NAME_LMA &quot;trusted.lma&quot;&lt;br/&gt;
XATTR_NAME_LINK &quot;trusted.link&quot;&lt;br/&gt;
XATTR_NAME_ACL_DEFAULT &quot;system.posix_acl_default&quot;&lt;br/&gt;
XATTR_NAME_ACL_ACCESS &quot;system.posix_acl_access&quot;&lt;br/&gt;
XATTR_NAME_LOV &quot;trusted.lov&quot;&lt;br/&gt;
XATTR_NAME_HSM &quot;trusted.hsm&quot;&lt;/p&gt;

&lt;p&gt;&quot;trusted.link&quot; updates require XATTR inode bit cancellation in mdt_reint_unlink, mdt_reint_link and mdt_reint_rename.&lt;br/&gt;
I pushed &lt;a href=&quot;http://review.whamcloud.com/#/c/7186/&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;http://review.whamcloud.com/#/c/7186/&lt;/a&gt; with fixes for XATTR_NAME_LINK, and will update the patch with HSM soon.&lt;/p&gt;</comment>
                            <comment id="63330" author="jhammond" created="Wed, 31 Jul 2013 00:48:04 +0000"  >&lt;p&gt;Andrew, I was thinking it might be best for the trusted xattrs to bypass the cache. What do you think?&lt;/p&gt;</comment>
                            <comment id="63332" author="panda" created="Wed, 31 Jul 2013 00:50:57 +0000"  >&lt;p&gt;John, I like this solution, since the original goal was to speed up samba clients. Trusted attr lookups seem unlikely.&lt;/p&gt;</comment>
                            <comment id="63333" author="adilger" created="Wed, 31 Jul 2013 00:52:45 +0000"  >&lt;p&gt;John, except that tools like SELinux depend heavily on trusted.* xattrs and will benefit significantly from the cache.  I don&apos;t think many of them change very frequently, with the exception of .link being the possible exception (and not even that will change very often).&lt;/p&gt;</comment>
                            <comment id="63334" author="panda" created="Wed, 31 Jul 2013 01:00:24 +0000"  >&lt;p&gt;SELinux uses &quot;security.selinux&quot; to store object contexts. Hopefully, it is not affected by that.&lt;/p&gt;</comment>
                            <comment id="63370" author="panda" created="Wed, 31 Jul 2013 14:40:18 +0000"  >&lt;p&gt;One of the shortcomings of trusted.* filtering is that listxattr data cannot be cached as well.&lt;/p&gt;</comment>
                            <comment id="63398" author="panda" created="Wed, 31 Jul 2013 18:26:50 +0000"  >&lt;p&gt;I updated the patch with xattr locking for HSM:&lt;br/&gt;
mdt_swap_layouts, mdt_reint_setattr (via mdt_add_dirty_flag), mdt_mfd_close (vid mdt_hsm_release), mdt_hsm_state_set.&lt;/p&gt;</comment>
                            <comment id="67759" author="pjones" created="Thu, 26 Sep 2013 20:00:30 +0000"  >&lt;p&gt;Landed for 2.5&lt;/p&gt;</comment>
                    </comments>
                <issuelinks>
                            <issuelinktype id="10011">
                    <name>Related</name>
                                            <outwardlinks description="is related to ">
                                        <issuelink>
            <issuekey id="17700">LU-2869</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|hzvwpr:</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_10090" key="com.pyxis.greenhopper.jira:gh-global-rank">
                        <customfieldname>Rank (Obsolete)</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>9458</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>