<!-- 
RSS generated by JIRA (9.4.14#940014-sha1:734e6822bbf0d45eff9af51f82432957f73aa32c) at Sat Feb 10 03: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-13337] How to detach all files from PCC device</title>
                <link>https://jira.whamcloud.com/browse/LU-13337</link>
                <project id="10000" key="LU">Lustre</project>
                    <description>&lt;p&gt;If a user writes a large number of files on the PCC device, currently there is no way to get a listing of those cached files. The user must keep track of the files there could be cases where a user may lost track of some files.&lt;br/&gt;
Are there plans to add functionality for list of files on the PCC? &lt;br/&gt;
Currently, is there a backend way to find all those files? Or to detach all files?&lt;/p&gt;

&lt;p&gt;Thanks&lt;/p&gt;</description>
                <environment></environment>
        <key id="58295">LU-13337</key>
            <summary>How to detach all files from PCC device</summary>
                <type id="9" iconUrl="https://jira.whamcloud.com/images/icons/issuetypes/undefined.png">Question/Request</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="lixi_wc">Li Xi</assignee>
                                    <reporter username="mhanafi">Mahmoud Hanafi</reporter>
                        <labels>
                    </labels>
                <created>Thu, 5 Mar 2020 22:08:09 +0000</created>
                <updated>Thu, 14 May 2020 21:47:14 +0000</updated>
                            <resolved>Thu, 14 May 2020 21:47:14 +0000</resolved>
                                    <version>Lustre 2.13.0</version>
                                                        <due></due>
                            <votes>0</votes>
                                    <watches>4</watches>
                                                                            <comments>
                            <comment id="264791" author="pjones" created="Fri, 6 Mar 2020 15:27:21 +0000"  >&lt;p&gt;Li Xi could you please advise?&lt;/p&gt;</comment>
                            <comment id="268351" author="lixi_wc" created="Thu, 23 Apr 2020 13:55:47 +0000"  >&lt;blockquote&gt;&lt;p&gt;Are there plans to add functionality for list of files on the PCC? &lt;/p&gt;&lt;/blockquote&gt;

&lt;p&gt;The cached files are not maintained in memory (otherwise, the list would cost too much memory). Instead, the cached files can be listed by scanning the directory tree on the PCC device. And we are planing to add scanning tools. And the support for listing these cached files will be easily implemented in the tool, even though that is not the original purpose.&lt;/p&gt;

&lt;p&gt;There is already patch that adds the tool. &lt;a href=&quot;https://review.whamcloud.com/#/c/35230/&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://review.whamcloud.com/#/c/35230/&lt;/a&gt; And we will need to extend the tool a little bit for this purpose.&lt;/p&gt;

&lt;blockquote&gt;&lt;p&gt;Currently, is there a backend way to find all those files?&lt;/p&gt;&lt;/blockquote&gt;

&lt;p&gt;Even before the tool is ready, we could easily parsing the directory tree of PCC device by writing a simple script, because the directory tree can be accessed as normal file system. &quot;find $PCC_DIR -t f&quot; would list all cached files. And by parsing the path, a script can get the FIDs of the cached files. Please note that a tool/script shouldn&apos;t modify the PCC storage, otherwise data loss of the cached Lustre files could happen.&lt;/p&gt;

&lt;blockquote&gt;&lt;p&gt;Or to detach all files?&lt;/p&gt;&lt;/blockquote&gt;

&lt;p&gt;The patch &lt;a href=&quot;https://review.whamcloud.com/#/c/35230/&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://review.whamcloud.com/#/c/35230/&lt;/a&gt; will be able to detach all cached files when removing a PCC device.&lt;/p&gt;

</comment>
                            <comment id="270252" author="mhanafi" created="Thu, 14 May 2020 21:43:42 +0000"  >&lt;p&gt;please close this case.&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|i00v0n:</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>