<!-- 
RSS generated by JIRA (9.4.14#940014-sha1:734e6822bbf0d45eff9af51f82432957f73aa32c) at Sat Feb 10 03:28:27 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-16605] lfs fid2path should allow null byte separated output</title>
                <link>https://jira.whamcloud.com/browse/LU-16605</link>
                <project id="10000" key="LU">Lustre</project>
                    <description>&lt;p&gt;When using &apos;&lt;tt&gt;lfs fid2path&lt;/tt&gt;&apos; to find all hardlinks of a FID, the links are printed out with newline characters separating them. This is unsafe, since file paths are allowed to contain newline characters as well, which makes fid2path unreliable for non-interactive use (i.e. as part of other tools, without human supervision).&lt;/p&gt;

&lt;p&gt;This issue is present in the master branch, so I assume it might affect all current versions.&lt;/p&gt;

&lt;p&gt;To mitigate this problem and not break backwards compatibility, perhaps one could add a new command line argument that changes the path separator from &apos;\n&apos; to &apos;\0&apos;? Similar to &quot;&lt;tt&gt;find . -print0&lt;/tt&gt;&quot;, for example.&lt;/p&gt;

&lt;p&gt;&lt;tt&gt;# Suggested usage:&lt;/tt&gt;&lt;br/&gt;
&lt;tt&gt;lfs fid2path -0 &amp;lt;FID&amp;gt;&lt;/tt&gt;&lt;/p&gt;

&lt;p&gt;&#160;&lt;/p&gt;</description>
                <environment></environment>
        <key id="74887">LU-16605</key>
            <summary>lfs fid2path should allow null byte separated output</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="arshad512">Arshad Hussain</assignee>
                                    <reporter username="westersund">Simon Westersund</reporter>
                        <labels>
                            <label>easy</label>
                            <label>lug23dd</label>
                    </labels>
                <created>Wed, 1 Mar 2023 08:15:47 +0000</created>
                <updated>Fri, 8 Sep 2023 05:51:44 +0000</updated>
                            <resolved>Thu, 31 Aug 2023 15:05:54 +0000</resolved>
                                    <version>Upstream</version>
                                    <fixVersion>Lustre 2.16.0</fixVersion>
                                        <due></due>
                            <votes>0</votes>
                                    <watches>4</watches>
                                                                            <comments>
                            <comment id="364486" author="JIRAUSER18481" created="Wed, 1 Mar 2023 08:21:43 +0000"  >&lt;p&gt;I&apos;ll attach a patch suggestion based on our current 2.12.8_ddn18 (DDN Exascaler 5.2.6) version: &lt;span class=&quot;nobr&quot;&gt;&lt;a href=&quot;https://jira.whamcloud.com/secure/attachment/48285/48285_lfs-fid2path.patch&quot; title=&quot;lfs-fid2path.patch attached to LU-16605&quot;&gt;lfs-fid2path.patch&lt;sup&gt;&lt;img class=&quot;rendericon&quot; src=&quot;https://jira.whamcloud.com/images/icons/link_attachment_7.gif&quot; height=&quot;7&quot; width=&quot;7&quot; align=&quot;absmiddle&quot; alt=&quot;&quot; border=&quot;0&quot;/&gt;&lt;/sup&gt;&lt;/a&gt;&lt;/span&gt;&lt;/p&gt;

&lt;p&gt;It should be fairly easy to adapt this to the master branch.&lt;/p&gt;</comment>
                            <comment id="364538" author="adilger" created="Wed, 1 Mar 2023 16:52:25 +0000"  >&lt;p&gt;I think it is prett reasonable to have a &quot;&lt;tt&gt;-0&lt;/tt&gt;&quot; option for this. &lt;/p&gt;

&lt;p&gt;One related improvement that I&apos;ve wanted for a while is to allow printing only the filename(s) of the file instead of the whole pathname. That can be useful for debugging if the pathname is broken for some reason. There is already &quot;&lt;tt&gt;-f&lt;/tt&gt;&quot; to print the FID, so something like &quot;&lt;tt&gt;-n&lt;/tt&gt;&quot; to print the name(s) only. Both &quot;&lt;tt&gt;-f&lt;/tt&gt;&quot; and &quot;&lt;tt&gt;-n&lt;/tt&gt;&quot; could be used together. &lt;/p&gt;</comment>
                            <comment id="378219" author="gerrit" created="Tue, 11 Jul 2023 06:02:32 +0000"  >&lt;p&gt;&quot;Arshad Hussain &amp;lt;arshad.hussain@aeoncomputing.com&amp;gt;&quot; uploaded a new patch: &lt;a href=&quot;https://review.whamcloud.com/c/fs/lustre-release/+/51626&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://review.whamcloud.com/c/fs/lustre-release/+/51626&lt;/a&gt;&lt;br/&gt;
Subject: &lt;a href=&quot;https://jira.whamcloud.com/browse/LU-16605&quot; title=&quot;lfs fid2path should allow null byte separated output&quot; class=&quot;issue-link&quot; data-issue-key=&quot;LU-16605&quot;&gt;&lt;del&gt;LU-16605&lt;/del&gt;&lt;/a&gt; lfs: Add -n option to fid2path&lt;br/&gt;
Project: fs/lustre-release&lt;br/&gt;
Branch: master&lt;br/&gt;
Current Patch Set: 1&lt;br/&gt;
Commit: 16272732f122b903d7f2896182fb626aad216d40&lt;/p&gt;</comment>
                            <comment id="379738" author="gerrit" created="Fri, 21 Jul 2023 19:20:41 +0000"  >&lt;p&gt;&quot;Arshad Hussain &amp;lt;arshad.hussain@aeoncomputing.com&amp;gt;&quot; uploaded a new patch: &lt;a href=&quot;https://review.whamcloud.com/c/fs/lustre-release/+/51736&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://review.whamcloud.com/c/fs/lustre-release/+/51736&lt;/a&gt;&lt;br/&gt;
Subject: &lt;a href=&quot;https://jira.whamcloud.com/browse/LU-16605&quot; title=&quot;lfs fid2path should allow null byte separated output&quot; class=&quot;issue-link&quot; data-issue-key=&quot;LU-16605&quot;&gt;&lt;del&gt;LU-16605&lt;/del&gt;&lt;/a&gt; lfs: Add -0 option to fid2path&lt;br/&gt;
Project: fs/lustre-release&lt;br/&gt;
Branch: master&lt;br/&gt;
Current Patch Set: 1&lt;br/&gt;
Commit: dd442430705836fece9a51b5833cad8e21ce10ac&lt;/p&gt;</comment>
                            <comment id="381536" author="gerrit" created="Mon, 7 Aug 2023 03:50:29 +0000"  >&lt;p&gt;&quot;Oleg Drokin &amp;lt;green@whamcloud.com&amp;gt;&quot; merged in patch &lt;a href=&quot;https://review.whamcloud.com/c/fs/lustre-release/+/51736/&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://review.whamcloud.com/c/fs/lustre-release/+/51736/&lt;/a&gt;&lt;br/&gt;
Subject: &lt;a href=&quot;https://jira.whamcloud.com/browse/LU-16605&quot; title=&quot;lfs fid2path should allow null byte separated output&quot; class=&quot;issue-link&quot; data-issue-key=&quot;LU-16605&quot;&gt;&lt;del&gt;LU-16605&lt;/del&gt;&lt;/a&gt; lfs: Add -0 option to fid2path&lt;br/&gt;
Project: fs/lustre-release&lt;br/&gt;
Branch: master&lt;br/&gt;
Current Patch Set: &lt;br/&gt;
Commit: 8d4f9d1befb9962335d4cbc5b89cafced286b066&lt;/p&gt;</comment>
                            <comment id="384331" author="gerrit" created="Thu, 31 Aug 2023 06:33:14 +0000"  >&lt;p&gt;&quot;Oleg Drokin &amp;lt;green@whamcloud.com&amp;gt;&quot; merged in patch &lt;a href=&quot;https://review.whamcloud.com/c/fs/lustre-release/+/51626/&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://review.whamcloud.com/c/fs/lustre-release/+/51626/&lt;/a&gt;&lt;br/&gt;
Subject: &lt;a href=&quot;https://jira.whamcloud.com/browse/LU-16605&quot; title=&quot;lfs fid2path should allow null byte separated output&quot; class=&quot;issue-link&quot; data-issue-key=&quot;LU-16605&quot;&gt;&lt;del&gt;LU-16605&lt;/del&gt;&lt;/a&gt; lfs: Add -n option to fid2path&lt;br/&gt;
Project: fs/lustre-release&lt;br/&gt;
Branch: master&lt;br/&gt;
Current Patch Set: &lt;br/&gt;
Commit: a1bc7a84ce5b3b649fd590a80645f299205024c2&lt;/p&gt;</comment>
                            <comment id="384420" author="pjones" created="Thu, 31 Aug 2023 15:05:54 +0000"  >&lt;p&gt;Landed for 2.16&lt;/p&gt;</comment>
                    </comments>
                <issuelinks>
                            <issuelinktype id="10011">
                    <name>Related</name>
                                                                <inwardlinks description="is related to">
                                                        </inwardlinks>
                                    </issuelinktype>
                    </issuelinks>
                <attachments>
                            <attachment id="48285" name="lfs-fid2path.patch" size="1888" author="westersund" created="Wed, 1 Mar 2023 08:18:48 +0000"/>
                    </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|i03fd3:</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>