<!-- 
RSS generated by JIRA (9.4.14#940014-sha1:734e6822bbf0d45eff9af51f82432957f73aa32c) at Sat Feb 10 02:34:31 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-10378] &quot;lfs find&quot; is missing &quot;-printf&quot; support</title>
                <link>https://jira.whamcloud.com/browse/LU-10378</link>
                <project id="10000" key="LU">Lustre</project>
                    <description>&lt;p&gt;It would be useful to be able to add the &quot;&lt;tt&gt;&amp;#45;ls&lt;/tt&gt;&quot; option to &quot;&lt;tt&gt;lfs find&lt;/tt&gt;&quot; to print out file attributes.&lt;/p&gt;

&lt;p&gt;Even better would be if &lt;tt&gt;&amp;#45;ls&lt;/tt&gt; was implemented as a fixed-format option of the &quot;&lt;tt&gt;&amp;#45;&amp;#45;printf&lt;/tt&gt;&quot; command, which could print out POSIX and Lustre-specific attributes such as OST/MDT indices for stripes, MDT inode index, etc. similar to &lt;tt&gt;find(1)&lt;/tt&gt; and &lt;tt&gt;stat(1)&lt;/tt&gt;.   &lt;/p&gt;

&lt;p&gt;Unfortunately, the &lt;tt&gt;%&lt;/tt&gt; options used by &lt;tt&gt;find(1)&lt;/tt&gt; and &lt;tt&gt;stat(1)&lt;/tt&gt; are not consistent.  In case of disagreement, the &lt;tt&gt;find(1)&lt;/tt&gt; options should be used. Thankfully, it appears that &quot;&lt;tt&gt;%L&lt;/tt&gt;&quot; is not used for &lt;tt&gt;&amp;#45;&amp;#45;printf&lt;/tt&gt; by either &lt;tt&gt;find(1)&lt;/tt&gt; or &lt;tt&gt;stat(1)&lt;/tt&gt;, so it could be used to print out the Lustre-specific options, for example &quot;&lt;tt&gt;%Li&lt;/tt&gt;&quot; for starting OST index, &quot;&lt;tt&gt;%Lo&lt;/tt&gt;&quot; for all OST indices, &quot;&lt;tt&gt;%Lc&lt;/tt&gt;&quot; for stripe count, &quot;&lt;tt&gt;%LS&lt;/tt&gt;&quot; for stripe size, &quot;&lt;tt&gt;%Lp&lt;/tt&gt;&quot; for pool, etc., with the second letter matching the short options used by &lt;tt&gt;lfs getstripe&lt;/tt&gt;. &lt;/p&gt;

&lt;p&gt;It would also be useful to add &lt;tt&gt;&amp;#45;&amp;#45;printf&lt;/tt&gt; to &quot;&lt;tt&gt;lfs getstripe&lt;/tt&gt;&quot; as well.&lt;/p&gt;</description>
                <environment></environment>
        <key id="49717">LU-10378</key>
            <summary>&quot;lfs find&quot; is missing &quot;-printf&quot; support</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="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="georgea">Anjus George</assignee>
                                    <reporter username="adilger">Andreas Dilger</reporter>
                        <labels>
                            <label>medium</label>
                    </labels>
                <created>Wed, 13 Dec 2017 22:23:04 +0000</created>
                <updated>Wed, 15 Feb 2023 21:21:53 +0000</updated>
                            <resolved>Wed, 26 Jan 2022 14:20:23 +0000</resolved>
                                    <version>Lustre 2.10.0</version>
                                    <fixVersion>Lustre 2.15.0</fixVersion>
                                        <due></due>
                            <votes>0</votes>
                                    <watches>6</watches>
                                                                            <comments>
                            <comment id="301716" author="rmohr" created="Fri, 14 May 2021 21:37:22 +0000"  >&lt;p&gt;Myself and a colleague are working on implementing a feature to &quot;lfs find&quot; that would print additional information about files beyond just the filename.&#160; Initially, we are looking to add a new option (maybe something like --print-all) that would print most (if not all) information about matching files, like stripe count, layout info, timestamps, etc. in some form of structured output suitable for parsing by other programs.&#160; The plan is to use this as a foundation for later adding a --printf option that would allow users to specify what subset of information they want and the format they want it in.&lt;/p&gt;

&lt;p&gt;Would Whamcloud be open to accepting a feature like --print-all with the expectation that future patches would implement the --printf option?&lt;/p&gt;</comment>
                            <comment id="301848" author="adilger" created="Tue, 18 May 2021 07:55:12 +0000"  >&lt;p&gt;I&apos;m reluctant to give a &quot;yes, I will accept anything&quot; approval in advance of seeing the patch, or at least some inclination what the &quot;structured output&quot; would look like. However, I&apos;m be generally in favor of something like this, e.g. &quot;&lt;tt&gt;&amp;#45;&amp;#45;print&amp;#45;yaml&lt;/tt&gt;&quot; that used an extensible basic YAML format. I&apos;d be less keen on something like &quot;&lt;tt&gt;&amp;#45;&amp;#45;print&amp;#45;csv&lt;/tt&gt;&quot; or colon-separated values that are positional, because adding new fields in the future would be difficult.&lt;/p&gt;

&lt;p&gt;Given that we already have &quot;&lt;tt&gt;lfs getstripe &amp;#45;&amp;#45;yaml&lt;/tt&gt;&quot; for printing the &lt;tt&gt;trusted.lov&lt;/tt&gt; (&lt;tt&gt;lustre.lov&lt;/tt&gt;) xattr, and that might be considered part of &quot;all&quot; inode attributes, then it makes sense to be able encapsulate that (and other xattrs) into the output in the future, rather than print all of the fields separately (and which only make sense for plain layouts). &lt;/p&gt;</comment>
                            <comment id="301874" author="rmohr" created="Tue, 18 May 2021 14:36:53 +0000"  >&lt;p&gt;I wasn&apos;t necessarily looking for an unconditional &quot;yes&quot;, but I just wanted to make sure it wasn&apos;t going to be an unconditional &quot;no&quot;.&lt;/p&gt;

&lt;p&gt;YAML is one format we are considering since that would be consistent with &quot;&lt;tt&gt;lfs getstripe --yaml&lt;/tt&gt;&quot; as you mentioned.&#160; We had considered just trying to convert the structures to yaml format to print them out, but now we are thinking that might print out more info than we actually need.&#160; &#160;Plus, some info (like project id) does not appear to be contained in structures like lov_user_mds_data anyway.&lt;/p&gt;

&lt;p&gt;So we&apos;re looking into compiling a list of the values that we might be interested in printing using a printf syntax and also creating an initial list of the format specifiers (like %Lo) that would go with each one (to prepare for eventual printf implementation).&#160; &#160; Then perhaps the --print-all option could just be a shortcut for something like --printf &quot;stripe_count: %Lc \n stripe_size: %Ls \n ...&quot;.&lt;/p&gt;

&lt;p&gt;(I am just using --print-all as a placeholder for whatever name we choose, not as a final design decision.&#160; And I can absolutely assure you the format will not be CSV &lt;img class=&quot;emoticon&quot; src=&quot;https://jira.whamcloud.com/images/icons/emoticons/wink.png&quot; height=&quot;16&quot; width=&quot;16&quot; align=&quot;absmiddle&quot; alt=&quot;&quot; border=&quot;0&quot;/&gt;)&lt;/p&gt;</comment>
                            <comment id="312923" author="gerrit" created="Wed, 15 Sep 2021 18:54:46 +0000"  >&lt;p&gt;&lt;del&gt;&quot;Anjus George &amp;lt;georgea@ornl.gov&amp;gt;&quot; uploaded a new patch:&lt;/del&gt; &lt;a href=&quot;https://review.whamcloud.com/44929&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://review.whamcloud.com/44929&lt;/a&gt;&lt;br/&gt;
&lt;del&gt;Subject: &lt;a href=&quot;https://jira.whamcloud.com/browse/LU-10378&quot; title=&quot;&amp;quot;lfs find&amp;quot; is missing &amp;quot;-printf&amp;quot; support&quot; class=&quot;issue-link&quot; data-issue-key=&quot;LU-10378&quot;&gt;&lt;del&gt;LU-10378&lt;/del&gt;&lt;/a&gt; utils: add formatted printf to lfs find&lt;/del&gt;&lt;br/&gt;
&lt;del&gt;Project: fs/lustre-release&lt;/del&gt;&lt;br/&gt;
&lt;del&gt;Branch: master&lt;/del&gt;&lt;br/&gt;
&lt;del&gt;Current Patch Set: 1&lt;/del&gt;&lt;br/&gt;
&lt;del&gt;Commit: 46e2503acbf86649f0e88c7b13b012677e5aac3b&lt;/del&gt;&lt;/p&gt;</comment>
                            <comment id="314809" author="gerrit" created="Wed, 6 Oct 2021 13:55:44 +0000"  >&lt;p&gt;&quot;Anjus George &amp;lt;georgea@ornl.gov&amp;gt;&quot; uploaded a new patch: &lt;a href=&quot;https://review.whamcloud.com/45136&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://review.whamcloud.com/45136&lt;/a&gt;&lt;br/&gt;
Subject: &lt;a href=&quot;https://jira.whamcloud.com/browse/LU-10378&quot; title=&quot;&amp;quot;lfs find&amp;quot; is missing &amp;quot;-printf&amp;quot; support&quot; class=&quot;issue-link&quot; data-issue-key=&quot;LU-10378&quot;&gt;&lt;del&gt;LU-10378&lt;/del&gt;&lt;/a&gt; utils: add formatted printf to lfs find&lt;br/&gt;
Project: fs/lustre-release&lt;br/&gt;
Branch: master&lt;br/&gt;
Current Patch Set: 1&lt;br/&gt;
Commit: 8c6526f39abfcb2625c51f9cf098b8c73a2e0dda&lt;/p&gt;</comment>
                            <comment id="319157" author="adilger" created="Wed, 24 Nov 2021 23:53:11 +0000"  >&lt;p&gt;Assign to Anjus who is working on a patch for &quot;&lt;tt&gt;lfs find -printf&lt;/tt&gt;&quot;.&lt;/p&gt;</comment>
                            <comment id="323960" author="gerrit" created="Wed, 26 Jan 2022 05:15:46 +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/45136/&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://review.whamcloud.com/45136/&lt;/a&gt;&lt;br/&gt;
Subject: &lt;a href=&quot;https://jira.whamcloud.com/browse/LU-10378&quot; title=&quot;&amp;quot;lfs find&amp;quot; is missing &amp;quot;-printf&amp;quot; support&quot; class=&quot;issue-link&quot; data-issue-key=&quot;LU-10378&quot;&gt;&lt;del&gt;LU-10378&lt;/del&gt;&lt;/a&gt; utils: add formatted printf to lfs find&lt;br/&gt;
Project: fs/lustre-release&lt;br/&gt;
Branch: master&lt;br/&gt;
Current Patch Set: &lt;br/&gt;
Commit: 6b8e97b76c472068e7d6bc792e4f202b2f70ca67&lt;/p&gt;</comment>
                            <comment id="324006" author="pjones" created="Wed, 26 Jan 2022 14:20:23 +0000"  >&lt;p&gt;Landed for 2.15&lt;/p&gt;</comment>
                            <comment id="324513" author="adilger" created="Mon, 31 Jan 2022 01:34:05 +0000"  >&lt;p&gt;The landed patch added &quot;&lt;tt&gt;-printf&lt;/tt&gt;&quot; support, but not &quot;&lt;tt&gt;-ls&lt;/tt&gt;&quot;. I&apos;ll clone this to add a separate LU ticket for &quot;&lt;tt&gt;-ls&lt;/tt&gt;&quot;. &lt;/p&gt;</comment>
                    </comments>
                <issuelinks>
                            <issuelinktype id="10324">
                    <name>Cloners</name>
                                                                <inwardlinks description="is cloned by">
                                        <issuelink>
            <issuekey id="68412">LU-15504</issuekey>
        </issuelink>
                            </inwardlinks>
                                    </issuelinktype>
                            <issuelinktype id="10010">
                    <name>Duplicate</name>
                                                                <inwardlinks description="is duplicated by">
                                        <issuelink>
            <issuekey id="46779">LU-9689</issuekey>
        </issuelink>
                            </inwardlinks>
                                    </issuelinktype>
                            <issuelinktype id="10011">
                    <name>Related</name>
                                            <outwardlinks description="is related to ">
                                        <issuelink>
            <issuekey id="25084">LU-5170</issuekey>
        </issuelink>
            <issuelink>
            <issuekey id="33365">LU-7495</issuekey>
        </issuelink>
                            </outwardlinks>
                                                                <inwardlinks description="is related to">
                                        <issuelink>
            <issuekey id="74700">LU-16560</issuekey>
        </issuelink>
            <issuelink>
            <issuekey id="70232">LU-15837</issuekey>
        </issuelink>
            <issuelink>
            <issuekey id="67329">LU-15276</issuekey>
        </issuelink>
            <issuelink>
            <issuekey id="46202">LU-9537</issuekey>
        </issuelink>
                            </inwardlinks>
                                    </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|hzzpav:</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>