<!-- 
RSS generated by JIRA (9.4.14#940014-sha1:734e6822bbf0d45eff9af51f82432957f73aa32c) at Sat Feb 10 02:00:25 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-6460] LLIF_FILE_RESTORING is not cleared at end of restore</title>
                <link>https://jira.whamcloud.com/browse/LU-6460</link>
                <project id="10000" key="LU">Lustre</project>
                    <description>&lt;p&gt;The LLIF_FILE_RESTORING flag is not cleared until an IO is performed on the inode. This may cause stale file attributes to be cached if the file is stated during restore. To reproduce:&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;export MOUNT_2=y
llmount.sh
lctl conf_param lustre-MDT0000.mdt.hsm_control=enabled
mkdir -p /mnt/lustre-hsm
mount $HOSTNAME@tcp:/lustre /mnt/lustre-hsm -t lustre -o user_xattr,flock
mkdir -p /tmp/arc1
lhsmtool_posix -vvvv --hsm_root=/tmp/arc1 --daemon /mnt/lustre-hsm 2&amp;gt; /tmp/hsm.log
echo XXX &amp;gt; /mnt/lustre/f0
lfs hsm_archive /mnt/lustre/f0
sleep 1
lfs hsm_release /mnt/lustre/f0
killall lhsmtool_posix
cat /mnt/lustre/f0 &amp;amp;
sleep 1
stat /mnt/lustre2/f0
lhsmtool_posix -vvvv --hsm_root=/tmp/arc1 --daemon /mnt/lustre-hsm 2&amp;gt; /tmp/hsm.log
wait
dd &lt;span class=&quot;code-keyword&quot;&gt;if&lt;/span&gt;=/dev/zero of=/mnt/lustre/f0 count=1
stat /mnt/lustre/f0
stat /mnt/lustre2/f0
sleep 60
stat /mnt/lustre/f0
stat /mnt/lustre2/f0
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;

&lt;p&gt;Output&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;...
t:~# lhsmtool_posix -vvvv --hsm_root=/tmp/arc1 --daemon /mnt/lustre-hsm 2&amp;gt; /tmp/hsm.log
t:~# echo XXX &amp;gt; /mnt/lustre/f0
t:~# lfs hsm_archive /mnt/lustre/f0
t:~# sleep 1
t:~# lfs hsm_release /mnt/lustre/f0
t:~# killall lhsmtool_posix
t:~# cat /mnt/lustre/f0 &amp;amp;
[1] 10620
t:~# sleep 1
t:~# stat /mnt/lustre2/f0
  File: `/mnt/lustre2/f0&apos;
  Size: 4         	Blocks: 1          IO Block: 4194304 regular file
Device: 2c54f966h/743766374d	Inode: 144115205255725063  Links: 1
Access: (0644/-rw-r--r--)  Uid: (    0/    root)   Gid: (    0/    root)
Access: 2015-04-13 16:58:17.000000000 -0500
Modify: 2015-04-13 16:58:17.000000000 -0500
Change: 2015-04-13 16:58:17.000000000 -0500
t:~# lhsmtool_posix -vvvv --hsm_root=/tmp/arc1 --daemon /mnt/lustre-hsm 2&amp;gt; /tmp/hsm.log
t:~# wait
XXX
[1]+  Done                    cat /mnt/lustre/f0
t:~# dd if=/dev/zero of=/mnt/lustre/f0 count=1
1+0 records in
1+0 records out
512 bytes (512 B) copied, 0.000714119 s, 717 kB/s
t:~# stat /mnt/lustre/f0
  File: `/mnt/lustre/f0&apos;
  Size: 512       	Blocks: 8          IO Block: 4194304 regular file
Device: 2c54f966h/743766374d	Inode: 144115205255725063  Links: 1
Access: (0644/-rw-r--r--)  Uid: (    0/    root)   Gid: (    0/    root)
Access: 2015-04-13 16:58:17.000000000 -0500
Modify: 2015-04-13 16:58:28.000000000 -0500
Change: 2015-04-13 16:58:28.000000000 -0500
t:~# stat /mnt/lustre2/f0
  File: `/mnt/lustre2/f0&apos;
  Size: 4         	Blocks: 1          IO Block: 4194304 regular file
Device: 2c54f966h/743766374d	Inode: 144115205255725063  Links: 1
Access: (0644/-rw-r--r--)  Uid: (    0/    root)   Gid: (    0/    root)
Access: 2015-04-13 16:58:17.000000000 -0500
Modify: 2015-04-13 16:58:28.000000000 -0500
Change: 2015-04-13 16:58:28.000000000 -0500
t:~# sleep 60
t:~# stat /mnt/lustre/f0
  File: `/mnt/lustre/f0&apos;
  Size: 512       	Blocks: 8          IO Block: 4194304 regular file
Device: 2c54f966h/743766374d	Inode: 144115205255725063  Links: 1
Access: (0644/-rw-r--r--)  Uid: (    0/    root)   Gid: (    0/    root)
Access: 2015-04-13 16:58:17.000000000 -0500
Modify: 2015-04-13 16:58:28.000000000 -0500
Change: 2015-04-13 16:58:28.000000000 -0500
t:~# stat /mnt/lustre2/f0
  File: `/mnt/lustre2/f0&apos;
  Size: 4         	Blocks: 1          IO Block: 4194304 regular file
Device: 2c54f966h/743766374d	Inode: 144115205255725063  Links: 1
Access: (0644/-rw-r--r--)  Uid: (    0/    root)   Gid: (    0/    root)
Access: 2015-04-13 16:58:17.000000000 -0500
Modify: 2015-04-13 16:58:28.000000000 -0500
Change: 2015-04-13 16:58:28.000000000 -0500
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;</description>
                <environment></environment>
        <key id="29495">LU-6460</key>
            <summary>LLIF_FILE_RESTORING is not cleared at end of restore</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="bfaccini">Bruno Faccini</assignee>
                                    <reporter username="jhammond">John Hammond</reporter>
                        <labels>
                            <label>hsm</label>
                            <label>medium</label>
                    </labels>
                <created>Mon, 13 Apr 2015 22:03:23 +0000</created>
                <updated>Sun, 31 Jul 2016 14:10:10 +0000</updated>
                            <resolved>Fri, 31 Jul 2015 14:08:28 +0000</resolved>
                                    <version>Lustre 2.8.0</version>
                                    <fixVersion>Lustre 2.8.0</fixVersion>
                                        <due></due>
                            <votes>0</votes>
                                    <watches>7</watches>
                                                                            <comments>
                            <comment id="113045" author="pjones" created="Tue, 21 Apr 2015 17:35:10 +0000"  >&lt;p&gt;Bruno&lt;/p&gt;

&lt;p&gt;Could you please look into this one?&lt;/p&gt;

&lt;p&gt;Peter&lt;/p&gt;</comment>
                            <comment id="113046" author="adilger" created="Tue, 21 Apr 2015 17:36:04 +0000"  >&lt;p&gt;John, what is the impact of this bug?  What does userspace do with LLIF_FILE_RESTORING?&lt;/p&gt;</comment>
                            <comment id="113067" author="jhammond" created="Tue, 21 Apr 2015 18:35:42 +0000"  >&lt;p&gt;&amp;gt; John, what is the impact of this bug? What does userspace do with LLIF_FILE_RESTORING?&lt;/p&gt;

&lt;p&gt;The impact is that the wrong size and attributes may be reported by stat. A reproducer is shown in the description.&lt;/p&gt;

&lt;p&gt;Userspace cannot see LLIF_FILE_RESTORING. llite uses this flag to determine if the attributes from the MDT are sufficient for stat().&lt;/p&gt;</comment>
                            <comment id="113462" author="gerrit" created="Mon, 27 Apr 2015 09:11:50 +0000"  >&lt;p&gt;Faccini Bruno (bruno.faccini@intel.com) uploaded a new patch: &lt;a href=&quot;http://review.whamcloud.com/14609&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;http://review.whamcloud.com/14609&lt;/a&gt;&lt;br/&gt;
Subject: &lt;a href=&quot;https://jira.whamcloud.com/browse/LU-6460&quot; title=&quot;LLIF_FILE_RESTORING is not cleared at end of restore&quot; class=&quot;issue-link&quot; data-issue-key=&quot;LU-6460&quot;&gt;&lt;del&gt;LU-6460&lt;/del&gt;&lt;/a&gt; llite: clear LLIF_FILE_RESTORING when done&lt;br/&gt;
Project: fs/lustre-release&lt;br/&gt;
Branch: master&lt;br/&gt;
Current Patch Set: 1&lt;br/&gt;
Commit: 8a3f8dc28924784f3c06467c25a692779e65dfde&lt;/p&gt;</comment>
                            <comment id="122800" author="gerrit" created="Fri, 31 Jul 2015 01:33:02 +0000"  >&lt;p&gt;Oleg Drokin (oleg.drokin@intel.com) merged in patch &lt;a href=&quot;http://review.whamcloud.com/14609/&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;http://review.whamcloud.com/14609/&lt;/a&gt;&lt;br/&gt;
Subject: &lt;a href=&quot;https://jira.whamcloud.com/browse/LU-6460&quot; title=&quot;LLIF_FILE_RESTORING is not cleared at end of restore&quot; class=&quot;issue-link&quot; data-issue-key=&quot;LU-6460&quot;&gt;&lt;del&gt;LU-6460&lt;/del&gt;&lt;/a&gt; llite: clear LLIF_FILE_RESTORING when done&lt;br/&gt;
Project: fs/lustre-release&lt;br/&gt;
Branch: master&lt;br/&gt;
Current Patch Set: &lt;br/&gt;
Commit: a2c4b0583a84165b867b18e1446c187d18335879&lt;/p&gt;</comment>
                            <comment id="122851" author="pjones" created="Fri, 31 Jul 2015 14:08:28 +0000"  >&lt;p&gt;Landed for 2.8&lt;/p&gt;</comment>
                    </comments>
                <issuelinks>
                            <issuelinktype id="10011">
                    <name>Related</name>
                                            <outwardlinks description="is related to ">
                                        <issuelink>
            <issuekey id="23513">LU-4727</issuekey>
        </issuelink>
                            </outwardlinks>
                                                                <inwardlinks description="is related to">
                                        <issuelink>
            <issuekey id="31665">LU-7040</issuekey>
        </issuelink>
                            </inwardlinks>
                                    </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|hzxapb:</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>