<!-- 
RSS generated by JIRA (9.4.14#940014-sha1:734e6822bbf0d45eff9af51f82432957f73aa32c) at Sat Feb 10 02:46:04 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-11687] allow &quot;lfs fid2path&quot; on open-unlinked files</title>
                <link>https://jira.whamcloud.com/browse/LU-11687</link>
                <project id="10000" key="LU">Lustre</project>
                    <description>&lt;p&gt;Running &quot;&lt;tt&gt;lfs fid2path&lt;/tt&gt;&quot; on an open-unlinked file returns an error:&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;# sleep 1000 &amp;lt; /mnt/testfs/hosts &amp;amp;
# lctl get_param mdt.*.exports.*.open_files
[0x200000401:0x4:0x0]
# lfs fid2path /mnt/testfs [0x200000401:0x4:0x0]
/mnt/testfs/hosts
# rm /mnt/testfs/hosts
# lfs fid2path /mnt/testfs [0x200000401:0x4:0x0]
lfs fid2path: cannot find &apos;0x200000401:0x4:0x0&apos;: No such file or directory
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;
&lt;p&gt;This is not very useful if trying to find what file is consuming space.&lt;/p&gt;

&lt;p&gt;It would be more useful to return something different for open-unlinked files.  The kernel prints the pathname followed by &quot;&lt;tt&gt;(deleted)&lt;/tt&gt;&quot; at the end.  All open files are linked to the client exports and once the FID is mapped to the inode we could determine which NID has the file open.  It would be possible to print e.g. &quot;&lt;tt&gt;NID (deleted)&lt;/tt&gt;&quot; or similar and that it is possible to go to that client to find the file in question:&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;# lsof /mnt/testfs | grep &quot;(deleted)&quot;
sleep   22669 root    0r   REG 526,308960      158 144115205272502276 /mnt/testfs/hosts (deleted)
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;

&lt;p&gt;A more sophisticated approach would be to request the full pathname from the client, but that may not be practical.&lt;/p&gt;</description>
                <environment></environment>
        <key id="54079">LU-11687</key>
            <summary>allow &quot;lfs fid2path&quot; on open-unlinked files</summary>
                <type id="4" iconUrl="https://jira.whamcloud.com/secure/viewavatar?size=xsmall&amp;avatarId=11310&amp;avatarType=issuetype">Improvement</type>
                                            <priority id="4" iconUrl="https://jira.whamcloud.com/images/icons/priorities/minor.svg">Minor</priority>
                        <status id="1" iconUrl="https://jira.whamcloud.com/images/icons/statuses/open.png" description="The issue is open and ready for the assignee to start work on it.">Open</status>
                    <statusCategory id="2" key="new" colorName="default"/>
                                    <resolution id="-1">Unresolved</resolution>
                                        <assignee username="wc-triage">WC Triage</assignee>
                                    <reporter username="adilger">Andreas Dilger</reporter>
                        <labels>
                    </labels>
                <created>Wed, 21 Nov 2018 06:27:50 +0000</created>
                <updated>Thu, 24 Oct 2019 19:51:41 +0000</updated>
                                                                                <due></due>
                            <votes>0</votes>
                                    <watches>4</watches>
                                                                            <comments>
                            <comment id="244757" author="pfarrell" created="Wed, 27 Mar 2019 16:36:19 +0000"  >&lt;p&gt;Just a note for anyone else coming here about the test failures...&lt;/p&gt;

&lt;p&gt;This ticket keeps getting tagged in test failures instead of &lt;a href=&quot;https://jira.whamcloud.com/browse/LU-11678&quot; title=&quot;sanity-quota test 1 fails with &amp;#39;user write success, but expect EDQUOT&amp;#39;&quot; class=&quot;issue-link&quot; data-issue-key=&quot;LU-11678&quot;&gt;&lt;del&gt;LU-11678&lt;/del&gt;&lt;/a&gt;.&#160; No test failures are actually linked to this particular ticket, they&apos;re all &lt;a href=&quot;https://jira.whamcloud.com/browse/LU-11678&quot; title=&quot;sanity-quota test 1 fails with &amp;#39;user write success, but expect EDQUOT&amp;#39;&quot; class=&quot;issue-link&quot; data-issue-key=&quot;LU-11678&quot;&gt;&lt;del&gt;LU-11678&lt;/del&gt;&lt;/a&gt;.&lt;/p&gt;</comment>
                    </comments>
                <issuelinks>
                            <issuelinktype id="10010">
                    <name>Duplicate</name>
                                            <outwardlinks description="duplicates">
                                        <issuelink>
            <issuekey id="53956">LU-11638</issuekey>
        </issuelink>
                            </outwardlinks>
                                                        </issuelinktype>
                            <issuelinktype id="10011">
                    <name>Related</name>
                                            <outwardlinks description="is related to ">
                                        <issuelink>
            <issuekey id="54056">LU-11678</issuekey>
        </issuelink>
            <issuelink>
            <issuekey id="46611">LU-9629</issuekey>
        </issuelink>
                            </outwardlinks>
                                                        </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|i006pj:</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>
                                                                                                                                                                                                                                                                                                                                                                                                                </customfields>
    </item>
</channel>
</rss>