<!-- 
RSS generated by JIRA (9.4.14#940014-sha1:734e6822bbf0d45eff9af51f82432957f73aa32c) at Sat Feb 10 01:29:32 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-2935] layout swap on open unlinked file appears to succeed at first but does not</title>
                <link>https://jira.whamcloud.com/browse/LU-2935</link>
                <project id="10000" key="LU">Lustre</project>
                    <description>&lt;p&gt;Layout swap in which one file is unlinked after open appears to succeed, but the data in the remaining file will be unreadable after cache invalidation.&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;fd0 = open(&quot;f0&quot;, O_RDWR|O_CREAT, 0666);
fd1 = open(&quot;f1&quot;, O_RDWR|O_CREAT, 0666);
unlink(&quot;f1&quot;);
swap_layouts(fd0, fd1);
close(fd0);
close(fd1);
umount
mount
fd0 = open(&quot;f0&quot;, O_RDWR|O_CREAT, 0666);
read(fd0, buf, size); returns -ENOENT.
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&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
# echo 000 &amp;gt; f0
# echo 111 &amp;gt; f1
# exec 7&amp;lt;&amp;gt;f1
# rm f1
# lfs swap_layouts f0 /proc/self/fd/7
# exec 7&amp;gt;&amp;amp;-
# cat f0
111
# cat f0
111
# cat f0
111
# cat f1
cat: f1: No such file or directory
# cat f0
cat: f0: No such file or directory
# ls
f0
# stat f0
  File: `f0&apos;
  Size: 4         	Blocks: 8          IO Block: 4194304 regular file
Device: 2c54f966h/743766374d	Inode: 144115205255725073  Links: 1
Access: (0644/-rw-r--r--)  Uid: (    0/    root)   Gid: (    0/    root)
Access: 2013-03-08 14:32:29.000000000 -0600
Modify: 2013-03-08 14:32:29.000000000 -0600
Change: 2013-03-08 14:32:29.000000000 -0600
# cat f0
cat: f0: No such file or directory
# strace cat f0
execve(&quot;/bin/cat&quot;, [&quot;cat&quot;, &quot;f0&quot;], [/* 36 vars */]) = 0
...
open(&quot;f0&quot;, O_RDONLY)                    = 3
fstat(3, {st_mode=S_IFREG|0644, st_size=4, ...}) = 0
...
read(3, 0x7f4ef153f000, 4194304)        = -1 ENOENT (No such file or directory)
...
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;</description>
                <environment></environment>
        <key id="17809">LU-2935</key>
            <summary>layout swap on open unlinked file appears to succeed at first but does not</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="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="1">Fixed</resolution>
                                        <assignee username="jhammond">John Hammond</assignee>
                                    <reporter username="jhammond">John Hammond</reporter>
                        <labels>
                            <label>patch</label>
                    </labels>
                <created>Fri, 8 Mar 2013 15:43:34 +0000</created>
                <updated>Tue, 15 Oct 2013 14:55:52 +0000</updated>
                            <resolved>Tue, 15 Oct 2013 14:55:47 +0000</resolved>
                                    <version>Lustre 2.4.0</version>
                                    <fixVersion>Lustre 2.5.0</fixVersion>
                                        <due></due>
                            <votes>0</votes>
                                    <watches>6</watches>
                                                                            <comments>
                            <comment id="63950" author="spimpale" created="Fri, 9 Aug 2013 11:18:11 +0000"  >&lt;p&gt;Hi John,&lt;/p&gt;

&lt;p&gt;I am not able to reproduce this with the given steps on latest master.&lt;br/&gt;
Is this issue fixed?&lt;/p&gt;</comment>
                            <comment id="63957" author="spimpale" created="Fri, 9 Aug 2013 12:33:26 +0000"  >&lt;p&gt;Hi,&lt;/p&gt;

&lt;p&gt;The following is the console 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;# llmount.sh
# cd /mnt/lustre
# echo 000 &amp;gt; f0
# echo 111 &amp;gt; f1
# exec 7&amp;lt;&amp;gt;f1
# rm f1
# lfs swap_layouts f0 /proc/self/fd/7
# exec 7&amp;gt;&amp;amp;-
# cat f0
111
# cat f0
111
# cat f0
111
# cat f1
cat: f1: No such file or directory
# cat f0
111
# cat f0
111
# cat f0
111
# echo 3 &amp;gt; /proc/sys/vm/drop_caches
# cat f0
111
# umount
# mount
# cd /mnt/lustre
# cat f0
111
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;</comment>
                            <comment id="63963" author="jhammond" created="Fri, 9 Aug 2013 13:46:44 +0000"  >&lt;p&gt;Hi Swapnil, thanks for investigating.&lt;/p&gt;

&lt;p&gt;I concur. This issue was probably resolved by Lai&apos;s work on &lt;a href=&quot;https://jira.whamcloud.com/browse/LU-3125&quot; title=&quot;Oops in mdd_swap_layouts()&quot; class=&quot;issue-link&quot; data-issue-key=&quot;LU-3125&quot;&gt;&lt;del&gt;LU-3125&lt;/del&gt;&lt;/a&gt;.&lt;/p&gt;

&lt;p&gt;Would you like to add a regression test to sanity.sh?&lt;/p&gt;</comment>
                            <comment id="63977" author="spimpale" created="Fri, 9 Aug 2013 16:31:04 +0000"  >&lt;p&gt;Sure. I will do that.&lt;/p&gt;</comment>
                            <comment id="64072" author="spimpale" created="Mon, 12 Aug 2013 11:17:59 +0000"  >&lt;p&gt;Hi John,&lt;/p&gt;

&lt;p&gt;I have added a regression test to sanity.sh&lt;br/&gt;
The patch is here (&lt;a href=&quot;http://review.whamcloud.com/#/c/7301&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;http://review.whamcloud.com/#/c/7301&lt;/a&gt;)&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|hzvkif:</customfieldvalue>

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