<!-- 
RSS generated by JIRA (9.4.14#940014-sha1:734e6822bbf0d45eff9af51f82432957f73aa32c) at Sat Feb 10 01:17:36 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-1546] stat returns link count 1 for unlinked but open files</title>
                <link>https://jira.whamcloud.com/browse/LU-1546</link>
                <project id="10000" key="LU">Lustre</project>
                    <description>&lt;p&gt;An open file with no links reports link count 1, even 1 hour after the unlink().  I believe the issue is that the PENDING link is being erroneously reported to the client.&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;# cd /mnt/lustre
# ls -a
.  ..  .lustre
# touch FILE
# stat FILE
  File: `FILE&apos;
  Size: 0               Blocks: 0          IO Block: 2097152 regular empty file
Device: 2c54f966h/743766374d    Inode: 144115205255725057  Links: 1
Access: (0644/-rw-r--r--)  Uid: (    0/    root)   Gid: (    0/    root)
Access: 2012-06-20 12:51:48.000000000 -0500
Modify: 2012-06-20 12:51:48.000000000 -0500
Change: 2012-06-20 12:51:48.000000000 -0500
# exec 3&amp;lt;FILE
# stat -L /proc/self/fd/3
  File: `/proc/self/fd/3&apos;
  Size: 0               Blocks: 0          IO Block: 2097152 regular empty file
Device: 2c54f966h/743766374d    Inode: 144115205255725057  Links: 1
Access: (0644/-rw-r--r--)  Uid: (    0/    root)   Gid: (    0/    root)
Access: 2012-06-20 12:51:48.000000000 -0500
Modify: 2012-06-20 12:51:48.000000000 -0500
Change: 2012-06-20 12:51:48.000000000 -0500
# rm FILE
# stat -L /proc/self/fd/3
  File: `/proc/self/fd/3&apos;
  Size: 0               Blocks: 0          IO Block: 2097152 regular empty file
Device: 2c54f966h/743766374d    Inode: 144115205255725057  Links: 1
Access: (0644/-rw-r--r--)  Uid: (    0/    root)   Gid: (    0/    root)
Access: 2012-06-20 12:51:48.000000000 -0500
Modify: 2012-06-20 12:51:48.000000000 -0500
Change: 2012-06-20 12:52:33.000000000 -0500
# lsof /mnt/lustre
COMMAND   PID USER   FD   TYPE      DEVICE SIZE/OFF               NODE NAME
bash     5579 root  cwd    DIR 1273,181606     4096              25003 /mnt/lustre
bash     5579 root    3r   REG 1273,181606        0 144115205255725057 /mnt/lustre/FILE (deleted)
lsof    10806 root  cwd    DIR 1273,181606     4096              25003 /mnt/lustre
lsof    10807 root  cwd    DIR 1273,181606     4096              25003 /mnt/lustre
# sleep 3600
# stat -L /proc/self/fd/3
  File: `/proc/self/fd/3&apos;
  Size: 0               Blocks: 0          IO Block: 2097152 regular empty file
Device: 2c54f966h/743766374d    Inode: 144115205255725057  Links: 1
Access: (0644/-rw-r--r--)  Uid: (    0/    root)   Gid: (    0/    root)
Access: 2012-06-20 12:51:48.000000000 -0500
Modify: 2012-06-20 12:51:48.000000000 -0500
Change: 2012-06-20 12:52:33.000000000 -0500
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;</description>
                <environment># uname -r&lt;br/&gt;
2.6.32-220.13.1.el6.l22.x86_64&lt;br/&gt;
# cat /proc/fs/lustre/version &lt;br/&gt;
lustre: 2.2.55&lt;br/&gt;
kernel: patchless_client&lt;br/&gt;
build:  2.2.55-gef32640-CHANGED-2.6.32-220.13.1.el6.l22.x86_64&lt;br/&gt;
</environment>
        <key id="14992">LU-1546</key>
            <summary>stat returns link count 1 for unlinked but open files</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="bobijam">Zhenyu Xu</assignee>
                                    <reporter username="jhammond">John Hammond</reporter>
                        <labels>
                            <label>patch</label>
                    </labels>
                <created>Wed, 20 Jun 2012 21:55:06 +0000</created>
                <updated>Thu, 18 Apr 2013 18:44:29 +0000</updated>
                            <resolved>Thu, 18 Apr 2013 18:44:29 +0000</resolved>
                                    <version>Lustre 2.3.0</version>
                    <version>Lustre 2.1.2</version>
                                    <fixVersion>Lustre 2.4.0</fixVersion>
                                        <due></due>
                            <votes>0</votes>
                                    <watches>2</watches>
                                                                            <comments>
                            <comment id="40967" author="jhammond" created="Wed, 20 Jun 2012 22:05:31 +0000"  >&lt;p&gt;Please see &lt;a href=&quot;http://review.whamcloud.com/3154&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;http://review.whamcloud.com/3154&lt;/a&gt;.&lt;/p&gt;</comment>
                            <comment id="53164" author="jhammond" created="Thu, 28 Feb 2013 03:00:49 +0000"  >&lt;p&gt;Patch landed.&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|hzvoif:</customfieldvalue>

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