<!-- 
RSS generated by JIRA (9.4.14#940014-sha1:734e6822bbf0d45eff9af51f82432957f73aa32c) at Sat Feb 10 01:37:08 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-3814] Fix sanity-hsm test 24: &quot;Release does not change a/mtime (i/o)&quot;</title>
                <link>https://jira.whamcloud.com/browse/LU-3814</link>
                <project id="10000" key="LU">Lustre</project>
                    <description></description>
                <environment></environment>
        <key id="20551">LU-3814</key>
            <summary>Fix sanity-hsm test 24: &quot;Release does not change a/mtime (i/o)&quot;</summary>
                <type id="7" iconUrl="https://jira.whamcloud.com/images/icons/issuetypes/task_agile.png">Technical task</type>
                            <parent id="20020">LU-3647</parent>
                                    <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="3">Duplicate</resolution>
                                        <assignee username="jhammond">John Hammond</assignee>
                                    <reporter username="jlevi">Jodi Levi</reporter>
                        <labels>
                            <label>HSM</label>
                    </labels>
                <created>Thu, 22 Aug 2013 13:15:50 +0000</created>
                <updated>Wed, 16 Oct 2013 02:56:24 +0000</updated>
                            <resolved>Thu, 5 Sep 2013 18:44:21 +0000</resolved>
                                    <version>Lustre 2.5.0</version>
                                                        <due></due>
                            <votes>0</votes>
                                    <watches>5</watches>
                                                                            <comments>
                            <comment id="64908" author="jay" created="Thu, 22 Aug 2013 22:40:04 +0000"  >&lt;p&gt;John, please take a look since you&apos;re looking at this piece of code.&lt;/p&gt;</comment>
                            <comment id="65153" author="jhammond" created="Tue, 27 Aug 2013 13:05:40 +0000"  >&lt;p&gt;Please see&lt;/p&gt;

&lt;p&gt;&lt;a href=&quot;http://review.whamcloud.com/7442&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;http://review.whamcloud.com/7442&lt;/a&gt; &lt;a href=&quot;https://jira.whamcloud.com/browse/LU-3832&quot; title=&quot;osc_io_read_start() ignores O_NOATIME, updates i_atime&quot; class=&quot;issue-link&quot; data-issue-key=&quot;LU-3832&quot;&gt;&lt;del&gt;LU-3832&lt;/del&gt;&lt;/a&gt; clio: honor O_NOATIME&lt;/p&gt;

&lt;p&gt;&lt;a href=&quot;http://review.whamcloud.com/7461&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;http://review.whamcloud.com/7461&lt;/a&gt; &lt;a href=&quot;https://jira.whamcloud.com/browse/LU-3811&quot; title=&quot;non-root users cannot archive files, root cannot archive non-root users&amp;#39; files&quot; class=&quot;issue-link&quot; data-issue-key=&quot;LU-3811&quot;&gt;&lt;del&gt;LU-3811&lt;/del&gt;&lt;/a&gt; hsm: handle file ownership and timestamps&lt;/p&gt;

&lt;p&gt;&lt;a href=&quot;http://review.whamcloud.com/7472&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;http://review.whamcloud.com/7472&lt;/a&gt; &lt;a href=&quot;https://jira.whamcloud.com/browse/LU-3814&quot; title=&quot;Fix sanity-hsm test 24: &amp;quot;Release does not change a/mtime (i/o)&amp;quot;&quot; class=&quot;issue-link&quot; data-issue-key=&quot;LU-3814&quot;&gt;&lt;del&gt;LU-3814&lt;/del&gt;&lt;/a&gt; hsm: strengthen sanity-hsm test 24&lt;/p&gt;</comment>
                            <comment id="65265" author="jhammond" created="Wed, 28 Aug 2013 16:12:35 +0000"  >&lt;p&gt;On &lt;a href=&quot;http://review.whamcloud.com/7461&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;http://review.whamcloud.com/7461&lt;/a&gt; there was some discussion about setting the inode timestamps in mdt_hsm_release(). To test this I compared 7442+7461 with setting LA_&lt;/p&gt;
{A,M,C}TIME to 7442+7461 without setting LA_{A,M,C}
&lt;p&gt;TIME. The script I used (hsm-times.sh) is attached. In the timestamp lines the first column is the current time, the second, third, and fourth are the atime, mtime, and ctime. I ran simultaneously on two nodes so the command execution times are all the same upto 1 second.&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;### without LA_ATIME | LA_MTIME | LA_CTIME
1377703320:
# sys_creat /mnt/lustre/f0
1377703320: 1377703320 1377703320 1377703320
1377703325: 1377703320 1377703320 1377703320
# dd if=/dev/zero of=/mnt/lustre/f0 bs=1M count=10 conv=fsync status=noxfer
10+0 records in
10+0 records out
1377703325: 1377703320 1377703325 1377703325
1377703330: 1377703320 1377703325 1377703325
# dd if=/mnt/lustre/f0 of=/dev/null bs=1M count=10 status=noxfer
10+0 records in
10+0 records out
1377703330: 1377703330 1377703325 1377703325
1377703335: 1377703330 1377703325 1377703325
# dd if=/dev/zero of=/mnt/lustre/f0 bs=1M count=1 conv=fsync,notrunc status=noxfer
1+0 records in
1+0 records out
1377703335: 1377703330 1377703335 1377703335
1377703340: 1377703330 1377703335 1377703335
# remount_clients
1377703341: 1377703330 1377703335 1377703335
1377703346: 1377703330 1377703335 1377703335
# lfs hsm_archive /mnt/lustre/f0
1377703346: 1377703330 1377703335 1377703335
1377703361: 1377703330 1377703335 1377703335
1377703366: 1377703330 1377703335 1377703335
# lfs hsm_release /mnt/lustre/f0
1377703366: 1377703330 1377703335 1377703335
1377703371: 1377703330 1377703335 1377703335
# remount_clients
1377703371: 1377703320 1377703325 1377703325

### with LA_ATIME | LA_MTIME | LA_CTIME
1377703320:
# sys_creat /mnt/lustre/f0
1377703320: 1377703320 1377703320 1377703320
1377703325: 1377703320 1377703320 1377703320
# dd if=/dev/zero of=/mnt/lustre/f0 bs=1M count=10 conv=fsync status=noxfer
10+0 records in
10+0 records out
1377703325: 1377703320 1377703325 1377703325
1377703330: 1377703320 1377703325 1377703325
# dd if=/mnt/lustre/f0 of=/dev/null bs=1M count=10 status=noxfer
10+0 records in
10+0 records out
1377703330: 1377703330 1377703325 1377703325
1377703335: 1377703330 1377703325 1377703325
# dd if=/dev/zero of=/mnt/lustre/f0 bs=1M count=1 conv=fsync,notrunc status=noxfer
1+0 records in
1+0 records out
1377703335: 1377703330 1377703335 1377703335
1377703340: 1377703330 1377703335 1377703335
# remount_clients
1377703341: 1377703330 1377703335 1377703335
1377703346: 1377703330 1377703335 1377703335
# lfs hsm_archive /mnt/lustre/f0
1377703346: 1377703330 1377703335 1377703335
1377703361: 1377703330 1377703335 1377703335
1377703366: 1377703330 1377703335 1377703335
# lfs hsm_release /mnt/lustre/f0
1377703366: 1377703330 1377703335 1377703335
1377703371: 1377703330 1377703335 1377703335
# remount_clients
1377703371: 1377703330 1377703335 1377703335
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;
&lt;p&gt;Without setting the timestamps, after release and remount, all timestamps have reverted to those from the first write.&lt;/p&gt;

&lt;p&gt;I tried increasing the sleep duration to 30, 60, and 120, and still saw that without setting the timestamps in mdt_hsm_release() the final timestamps would be incorrect.&lt;/p&gt;</comment>
                            <comment id="65288" author="jay" created="Wed, 28 Aug 2013 17:54:51 +0000"  >&lt;p&gt;I see. Thanks for the experiment. &lt;/p&gt;</comment>
                            <comment id="65869" author="jhammond" created="Thu, 5 Sep 2013 18:44:21 +0000"  >&lt;p&gt;Duplicate of &lt;a href=&quot;https://jira.whamcloud.com/browse/LU-3811&quot; title=&quot;non-root users cannot archive files, root cannot archive non-root users&amp;#39; files&quot; class=&quot;issue-link&quot; data-issue-key=&quot;LU-3811&quot;&gt;&lt;del&gt;LU-3811&lt;/del&gt;&lt;/a&gt;.&lt;/p&gt;</comment>
                    </comments>
                    <attachments>
                            <attachment id="13410" name="hsm-times.sh" size="1362" author="jhammond" created="Wed, 28 Aug 2013 16:01:16 +0000"/>
                    </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|hzvyvj:</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_10090" key="com.pyxis.greenhopper.jira:gh-global-rank">
                        <customfieldname>Rank (Obsolete)</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>9857</customfieldvalue>
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                                                                                                                                                                </customfields>
    </item>
</channel>
</rss>