<!-- 
RSS generated by JIRA (9.4.14#940014-sha1:734e6822bbf0d45eff9af51f82432957f73aa32c) at Sat Feb 10 02:42: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-11258] lfs hsm_set generates spurious HE_ARCHIVE changelog events</title>
                <link>https://jira.whamcloud.com/browse/LU-11258</link>
                <project id="10000" key="LU">Lustre</project>
                    <description>&lt;p&gt;When you run a &lt;tt&gt;lfs hsm_set&lt;/tt&gt; that does not change the hsm state of the file in question, a CL_HSM/HE_ARCHIVE changelog entry is generated.&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@lustre-client1 tmp]# touch foo
142962 01CREAT 11:40:46.550070582 2018.08.16 0x0 t=[0x240018aa1:0x72:0x0] ef=0xf u=0:0 nid=192.168.131.17@tcp1 p=[0x240016b60:0x3:0x0] foo
142963 11CLOSE 11:40:46.556858619 2018.08.16 0x42 t=[0x240018aa1:0x72:0x0] ef=0xf u=0:0 nid=192.168.131.17@tcp1
[root@lustre-client1 tmp]# lfs hsm_set --exists foo
142964 16HSM   11:43:11.612093202 2018.08.16 0x280 t=[0x240018aa1:0x72:0x0] ef=0xf u=0:0 nid=192.168.131.17@tcp1
142965 11CLOSE 11:43:11.620994771 2018.08.16 0x2 t=[0x240018aa1:0x72:0x0] ef=0xf u=0:0 nid=192.168.131.17@tcp1
[root@lustre-client1 tmp]# lfs hsm_set --exists foo
142966 16HSM   11:43:27.083503844 2018.08.16 0x0 t=[0x240018aa1:0x72:0x0] ef=0xf u=0:0 nid=192.168.131.17@tcp1
142967 11CLOSE 11:43:27.092638243 2018.08.16 0x2 t=[0x240018aa1:0x72:0x0] ef=0xf u=0:0 nid=192.168.131.17@tcp1
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;
&lt;p&gt;The first &lt;tt&gt;hsm_set&lt;/tt&gt; yields a&#160;&lt;tt&gt;16HSM&lt;/tt&gt; entry with flags 0x280, which is&#160;&lt;tt&gt;HE_STATE&lt;/tt&gt; and no error. The second yields an entry with flags 0x0, which is&#160;&lt;tt&gt;HE_ARCHIVE&lt;/tt&gt; and no error.&lt;/p&gt;

&lt;p&gt;Part of the code at issue is &lt;tt&gt;mdd_hsm_update_locked()&lt;/tt&gt; which sets the &lt;tt&gt;cl_flags&lt;/tt&gt; value to include &lt;tt&gt;HE_STATE&lt;/tt&gt; only if the HSM flags changed. If there was no change the default value 0 remains in place, and this happens to correspond to&#160;&lt;tt&gt;HE_ARCHIVE&lt;/tt&gt; and no error.&lt;/p&gt;

&lt;p&gt;This appears to have been introduced by &lt;a href=&quot;https://jira.whamcloud.com/browse/LU-7264&quot; title=&quot;store ChangeLog record for security.* xattr changes&quot; class=&quot;issue-link&quot; data-issue-key=&quot;LU-7264&quot;&gt;&lt;del&gt;LU-7264&lt;/del&gt;&lt;/a&gt; and so should be limited to 2.10 and later.&lt;/p&gt;</description>
                <environment></environment>
        <key id="52988">LU-11258</key>
            <summary>lfs hsm_set generates spurious HE_ARCHIVE changelog events</summary>
                <type id="1" iconUrl="https://jira.whamcloud.com/secure/viewavatar?size=xsmall&amp;avatarId=11303&amp;avatarType=issuetype">Bug</type>
                                            <priority id="3" iconUrl="https://jira.whamcloud.com/images/icons/priorities/major.svg">Major</priority>
                        <status id="6" iconUrl="https://jira.whamcloud.com/images/icons/statuses/closed.png" description="The issue is considered finished, the resolution is correct. Issues which are closed can be reopened.">Closed</status>
                    <statusCategory id="3" key="done" colorName="success"/>
                                    <resolution id="2">Won&apos;t Fix</resolution>
                                        <assignee username="jhammond">John Hammond</assignee>
                                    <reporter username="olaf">Olaf Weber</reporter>
                        <labels>
                            <label>HSM</label>
                            <label>changelog</label>
                    </labels>
                <created>Thu, 16 Aug 2018 12:08:14 +0000</created>
                <updated>Wed, 23 Jun 2021 23:00:51 +0000</updated>
                            <resolved>Wed, 23 Jun 2021 23:00:47 +0000</resolved>
                                    <version>Lustre 2.10.0</version>
                                                        <due></due>
                            <votes>0</votes>
                                    <watches>3</watches>
                                                                            <comments>
                            <comment id="232067" author="pjones" created="Thu, 16 Aug 2018 17:59:45 +0000"  >&lt;p&gt;John is looking into this&lt;/p&gt;</comment>
                    </comments>
                    <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|i000tr:</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>