<!-- 
RSS generated by JIRA (9.4.14#940014-sha1:734e6822bbf0d45eff9af51f82432957f73aa32c) at Sat Feb 10 01:58:15 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-6213] &apos;tar -c&apos; returns status 1 if HSM released files were encountered</title>
                <link>https://jira.whamcloud.com/browse/LU-6213</link>
                <project id="10000" key="LU">Lustre</project>
                    <description>&lt;p&gt;HSM restore causes some file attributes to change (blocks and maybe ctime). tar detects this and reports &quot;tar: f0: file changed as we read it&quot; and will continue archiving but return 1 on exit. So according to its exit status it has failed but the archive contents are correct.&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;# echo XXXXXXXXXXXXXXXXXXXXXXXX &amp;gt; f0
# echo ZZZZZZZZZZZZZZZZZZZ &amp;gt; f1
# lfs hsm_archive f0
# lfs hsm_state f0
f0: (0x00000009) exists archived, archive_id:1
# lfs hsm_release f0
# lfs hsm_state f0
f0: (0x0000000d) released exists archived, archive_id:1
# tar -cf /tmp/0.tar f0 f1
tar: f0: file changed as we read it
# tar -tvf /tmp/0.tar
-rw-r--r-- root/root        25 2015-02-05 10:31 f0
-rw-r--r-- root/root        20 2015-02-05 10:34 f1
# rm f0 f1
# tar -xf /tmp/0.tar
# ls -l
total 1
-rw-r--r-- 1 root root 25 Feb  5 10:31 f0
-rw-r--r-- 1 root root 20 Feb  5 10:34 f1
# cat f0
XXXXXXXXXXXXXXXXXXXXXXXX
# cat f1
ZZZZZZZZZZZZZZZZZZZ
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;</description>
                <environment></environment>
        <key id="28573">LU-6213</key>
            <summary>&apos;tar -c&apos; returns status 1 if HSM released files were encountered</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="jhammond">John Hammond</assignee>
                                    <reporter username="jhammond">John Hammond</reporter>
                        <labels>
                            <label>hsm</label>
                    </labels>
                <created>Thu, 5 Feb 2015 16:40:50 +0000</created>
                <updated>Wed, 26 Aug 2015 17:44:30 +0000</updated>
                            <resolved>Wed, 26 Aug 2015 17:44:30 +0000</resolved>
                                    <version>Lustre 2.7.0</version>
                                    <fixVersion>Lustre 2.8.0</fixVersion>
                                        <due></due>
                            <votes>0</votes>
                                    <watches>9</watches>
                                                                            <comments>
                            <comment id="105912" author="adilger" created="Thu, 5 Feb 2015 19:40:00 +0000"  >&lt;p&gt;It definitely makes sense to keep the previous timestamps when restoring a file. IMHO the userspace visible attributed of the file should stay constant regardless of whether the file is released or restored. &lt;/p&gt;

&lt;p&gt;Is the timestamp change a side effect of the MDS clock leaking into file attributes, and will this be fixed by other patches in that area?&lt;/p&gt;</comment>
                            <comment id="105918" author="rread" created="Thu, 5 Feb 2015 19:48:30 +0000"  >&lt;p&gt;AFAICT, restore is not changing the timestamps, just the blocks.  &lt;/p&gt;</comment>
                            <comment id="105949" author="jhammond" created="Thu, 5 Feb 2015 22:45:13 +0000"  >&lt;p&gt;It&apos;s the ctime change that tar is reacting to.&lt;/p&gt;
&lt;div class=&quot;code panel&quot; style=&quot;border-width: 1px;&quot;&gt;&lt;div class=&quot;codeContent panelContent&quot;&gt;
&lt;pre class=&quot;code-java&quot;&gt;                &lt;span class=&quot;code-keyword&quot;&gt;if&lt;/span&gt; (ok) {
			&lt;span class=&quot;code-keyword&quot;&gt;if&lt;/span&gt; ((timespec_cmp
                             (get_stat_ctime(&amp;amp;final_stat), original_ctime) != 0
                             /* Original ctime will change &lt;span class=&quot;code-keyword&quot;&gt;if&lt;/span&gt; the file is a directory and
                                --remove-files is given */
                             &amp;amp;&amp;amp; !(remove_files_option &amp;amp;&amp;amp; is_dir))
                            || original_size &amp;lt; final_stat.st_size) {
                                WARNOPT(WARN_FILE_CHANGED,
					(0, 0,
                                         _(&lt;span class=&quot;code-quote&quot;&gt;&quot;%s: file changed as we read it&quot;&lt;/span&gt;),
                                         quotearg_colon(p)));
                                set_exit_status(TAREXIT_DIFFERS);
                        } &lt;span class=&quot;code-keyword&quot;&gt;else&lt;/span&gt; &lt;span class=&quot;code-keyword&quot;&gt;if&lt;/span&gt; (atime_preserve_option ==
                                   replace_atime_preserve
                                   &amp;amp;&amp;amp; set_file_atime(fd, p, restore_times) != 0)
				utime_error(p);
                }
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;

&lt;p&gt;By skewing clocks I can see that the ctime comes from the copytool node via the OST object from the volatile file. (This is a different file from above.)&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;t3:lustre# echo XXX &amp;gt; f0
t3:lustre# stat f0
  File: `f0&apos;
  Size: 4         	Blocks: 1          IO Block: 4194304 regular file
Device: 2c54f966h/743766374d	Inode: 288230393331580931  Links: 1
Access: (0644/-rw-r--r--)  Uid: (    0/    root)   Gid: (    0/    root)
Access: 2015-02-05 15:38:58.000000000 -0600
Modify: 2015-02-05 15:38:58.000000000 -0600
Change: 2015-02-05 15:38:58.000000000 -0600
t3:lustre# lfs hsm_archive f0
t3:lustre# lfs hsm_release f0
t3:lustre# stat f0
  File: `f0&apos;
  Size: 4         	Blocks: 1          IO Block: 4194304 regular file
Device: 2c54f966h/743766374d	Inode: 288230393331580931  Links: 1
Access: (0644/-rw-r--r--)  Uid: (    0/    root)   Gid: (    0/    root)
Access: 2015-02-05 15:38:58.000000000 -0600
Modify: 2015-02-05 15:38:58.000000000 -0600
Change: 2015-02-05 15:38:58.000000000 -0600
t3:lustre# lfs hsm_restore f0
t3:lustre# stat f0
  File: `f0&apos;
  Size: 4         	Blocks: 8          IO Block: 4194304 regular file
Device: 2c54f966h/743766374d	Inode: 288230393331580931  Links: 1
Access: (0644/-rw-r--r--)  Uid: (    0/    root)   Gid: (    0/    root)
Access: 2015-02-05 15:38:58.000000000 -0600
Modify: 2015-02-05 15:38:58.000000000 -0600
Change: 2015-02-06 15:39:40.000000000 -0600
t3:lustre# lfs getstripe f0
f0
lmm_stripe_count:   1
lmm_stripe_size:    1048576
lmm_pattern:        1
lmm_layout_gen:     2
lmm_stripe_offset:  1
	obdidx		 objid		 objid		 group
	     1	             2	          0x2	             0

t0:~# stat /tmp/mnt/ROOT/f0
  File: `/tmp/mnt/ROOT/f0&apos;
  Size: 4               Blocks: 0          IO Block: 4096   regular file
Device: 701h/1793d      Inode: 141         Links: 1
Access: (0644/-rw-r--r--)  Uid: (    0/    root)   Gid: (    0/    root)
Access: 2015-02-05 15:38:58.000000000 -0600
Modify: 2015-02-05 15:38:58.000000000 -0600
Change: 2015-02-05 15:38:58.000000000 -0600

t2:~# stat /tmp/mnt/O/0/d2/2
  File: `/tmp/mnt/O/0/d2/2&apos;
  Size: 4         	Blocks: 8          IO Block: 4096   regular file
Device: 707h/1799d	Inode: 222         Links: 1
Access: (0666/-rw-rw-rw-)  Uid: (    0/    root)   Gid: (    0/    root)
Access: 2015-02-05 15:38:58.000000000 -0600
Modify: 2015-02-05 15:38:58.000000000 -0600
Change: 2015-02-06 15:39:40.000000000 -0600
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;</comment>
                            <comment id="105958" author="gerrit" created="Thu, 5 Feb 2015 23:38:01 +0000"  >&lt;p&gt;John L. Hammond (john.hammond@intel.com) uploaded a new patch: &lt;a href=&quot;http://review.whamcloud.com/13665&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;http://review.whamcloud.com/13665&lt;/a&gt;&lt;br/&gt;
Subject: &lt;a href=&quot;https://jira.whamcloud.com/browse/LU-6213&quot; title=&quot;&amp;#39;tar -c&amp;#39; returns status 1 if HSM released files were encountered&quot; class=&quot;issue-link&quot; data-issue-key=&quot;LU-6213&quot;&gt;&lt;del&gt;LU-6213&lt;/del&gt;&lt;/a&gt; llite: add LL_IOC_FUTIMES_3&lt;br/&gt;
Project: fs/lustre-release&lt;br/&gt;
Branch: master&lt;br/&gt;
Current Patch Set: 1&lt;br/&gt;
Commit: 3433f3e3da4963d5bbe3c5bf05748bc328bd9023&lt;/p&gt;</comment>
                            <comment id="125198" author="gerrit" created="Wed, 26 Aug 2015 15:44:37 +0000"  >&lt;p&gt;Oleg Drokin (oleg.drokin@intel.com) merged in patch &lt;a href=&quot;http://review.whamcloud.com/13665/&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;http://review.whamcloud.com/13665/&lt;/a&gt;&lt;br/&gt;
Subject: &lt;a href=&quot;https://jira.whamcloud.com/browse/LU-6213&quot; title=&quot;&amp;#39;tar -c&amp;#39; returns status 1 if HSM released files were encountered&quot; class=&quot;issue-link&quot; data-issue-key=&quot;LU-6213&quot;&gt;&lt;del&gt;LU-6213&lt;/del&gt;&lt;/a&gt; llite: add LL_IOC_FUTIMES_3&lt;br/&gt;
Project: fs/lustre-release&lt;br/&gt;
Branch: master&lt;br/&gt;
Current Patch Set: &lt;br/&gt;
Commit: 12e4004656f3019d0195d46de6df94af7452fdf8&lt;/p&gt;</comment>
                            <comment id="125229" author="jgmitter" created="Wed, 26 Aug 2015 17:44:30 +0000"  >&lt;p&gt;Landed for 2.8.&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|hzx5qv:</customfieldvalue>

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