<!-- 
RSS generated by JIRA (9.4.14#940014-sha1:734e6822bbf0d45eff9af51f82432957f73aa32c) at Sat Feb 10 03:33:06 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-17155] Simplify the output of lfs getstripe</title>
                <link>https://jira.whamcloud.com/browse/LU-17155</link>
                <project id="10000" key="LU">Lustre</project>
                    <description>&lt;p&gt;Let&apos;s try and simplify the output of lfs getstripe so that it&apos;s easier to read and understand the components involved. &lt;/p&gt;

&lt;p&gt;Right now the output can be in text format or yaml, however we should provide another options -H for &quot;human readable&quot; which breaks it down into a nice chart of some kind.&lt;/p&gt;</description>
                <environment></environment>
        <key id="78180">LU-17155</key>
            <summary>Simplify the output of lfs getstripe</summary>
                <type id="2" iconUrl="https://jira.whamcloud.com/secure/viewavatar?size=xsmall&amp;avatarId=11311&amp;avatarType=issuetype">New Feature</type>
                                            <priority id="5" iconUrl="https://jira.whamcloud.com/images/icons/priorities/trivial.svg">Trivial</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="vkuznetsov">Vitaliy Kuznetsov</assignee>
                                    <reporter username="cfaber">Colin Faber</reporter>
                        <labels>
                    </labels>
                <created>Thu, 28 Sep 2023 14:19:48 +0000</created>
                <updated>Fri, 29 Sep 2023 01:28:01 +0000</updated>
                                                                                <due></due>
                            <votes>0</votes>
                                    <watches>4</watches>
                                                                            <comments>
                            <comment id="387631" author="adilger" created="Thu, 28 Sep 2023 16:25:35 +0000"  >&lt;p&gt;Before any development is done on this, &lt;a href=&quot;https://jira.whamcloud.com/secure/ViewProfile.jspa?name=pbojanic_wc&quot; class=&quot;user-hover&quot; rel=&quot;pbojanic_wc&quot;&gt;pbojanic_wc&lt;/a&gt; and &lt;a href=&quot;https://jira.whamcloud.com/secure/ViewProfile.jspa?name=cfaber&quot; class=&quot;user-hover&quot; rel=&quot;cfaber&quot;&gt;cfaber&lt;/a&gt; can you please provide a text mock-up of what you want to see?  Otherwise, this could be a large bike shedding activity that spends a lot of time and has an outcome that nobody is happy with.  As a starting point, printing the numbers with MiB/GiB units, but do we want to change other things, like avoid printing the component IDs, mirror/component counts, etc ?  &lt;/p&gt;

&lt;p&gt;Also, I note that &lt;tt&gt;&amp;#45;H&lt;/tt&gt; is already used by &quot;&lt;tt&gt;lfs getdirstripe&lt;/tt&gt;&quot; to print the directory hash type, so if we want consistent options between these commands and/or make the &quot;&lt;tt&gt;&amp;#45;&amp;#45;human&amp;#45;readsble&lt;/tt&gt;&quot; available there, then we need a different option. Possibly a &quot;short long option&quot;! &lt;tt&gt;&amp;#45;&amp;#45;hr&lt;/tt&gt;&quot; in addition to the &quot;long long option&quot; &quot;&lt;tt&gt;&amp;#45;&amp;#45;human&amp;#45;readsble&lt;/tt&gt;&quot; would work, instead of trying to find a single letter?&lt;/p&gt;</comment>
                            <comment id="387633" author="JIRAUSER17312" created="Thu, 28 Sep 2023 16:39:01 +0000"  >&lt;p&gt;How about a summary section on top which describes the number of stripes and any specific layout conditions:&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;&amp;lt;file / directory&amp;gt; is a (file|directory) with &amp;lt;number of stripes&amp;gt; with each stripe being &amp;lt;size of stripes&amp;gt;. This (file|directory) has a specific layout to assign (first|last|etc) &amp;lt;size&amp;gt; of data to these targets &amp;lt;targets&amp;gt; and &amp;lt;size&amp;gt; to these targets &amp;lt;.. etc&amp;gt;. This (file|directory) also utilizes &amp;lt;features list&amp;gt; features.
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;
&lt;p&gt;&amp;lt;features list&amp;gt; could contain something like:&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;compression with &amp;lt;compression type&amp;gt; at &amp;lt;compression level&amp;gt;
data on metadata
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;
&lt;p&gt;and anything else..&lt;/p&gt;

&lt;p&gt;&lt;tt&gt;after that dump out a target list with any additional relevant parameters much like mysql does when listing data from a query&lt;/tt&gt;&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;+-----------------------------------------------------------------+
| TARGET    | SIZE  | OBJECT ID | etc.
+-----------------------------------------------------------------+
| MDT0000   |       | NNNNNN    | 
| OST0000   | 12345 | NNNNNN    |
| OST0001   | 12345 | NNNNNN    | 
| OST0002   | 12345 | NNNNNN    |  
+-----------------------------------------------------------------+&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;
&lt;p&gt;&#160;&lt;/p&gt;

&lt;p&gt;What do you think?&lt;/p&gt;</comment>
                            <comment id="387645" author="JIRAUSER18019" created="Thu, 28 Sep 2023 17:30:59 +0000"  >&lt;p&gt;Example1: simple striped file&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;# lfs getstripe -H test.11.0.root
filename: test.11.0.root
layout: stripes: 8 | stripe size: 1024MB | pattern: raid0 | stripe offset: 3
objectid: 65 | stripes: 8 | stripe size: 1024MB | targets: OST0000, OST00006, OST0005, OST0002, OST0001, OST0007, OST0004
objectid: 66 | stripes: 1 | stripe size: 1024MB | targets: OST0003
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;</comment>
                            <comment id="387671" author="adilger" created="Thu, 28 Sep 2023 18:39:44 +0000"  >&lt;p&gt;Colin, all I can say about turning the getstripe info into a paragraph of text is &quot;yuck&quot;, I don&apos;t ever want to do that. Not only does that hide the details among a bunch of filler words, it makes it much harder for non-English speakers to understand I think.&#160;&lt;/p&gt;

&lt;p&gt;I could imagine something like Peter&apos;s suggestion, one brief line per component, similar to the output of a &quot;plain&quot; layout on a directory - stripe count, component sizes, pools, maybe a compact list of OSTs, probably not even stripe size or object IDs are useful to most users. Like:&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;$ lfs getstripe --hr file
mirror: 1
 &#160; &#160;component: 1, start: 0, end: 128KiB, mdt: 1, compress: gzip:9
    component: 2, start: 128KiB, end: 1GiB, pool: ssd, stripes: 1, osts: 3
    component: 3, start: 1GiB, end: 16GiB, pool: ssd, stripes: 4, osts: 4-7
    component: 4, start: 16GiB, end: eof, pool: hdd, stripes: 40, unused
mirror: 2
    :
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;
&lt;p&gt;The mirror, component, and attributes like compression, mdt, etc. would only be printed if needed, to reduce clutter and line length. A few times I wondered about using &quot;part&quot; instead of &quot;component&quot; (shorter, more common), but &quot;part&quot; has no meaning for a layout and I think would just add confusion.&lt;/p&gt;

&lt;p&gt;What this output does not need is to be parseable, nor &quot;too pretty&quot;, or full text. We might consider to separate printing of numbers with units (like most &quot;--human-readable&quot; options do) and have a separate &quot;&lt;tt&gt;&amp;#45;&amp;#45;plain&lt;/tt&gt;&quot; or &quot;&lt;tt&gt;&amp;#45;&amp;#45;simple&lt;/tt&gt;&quot; option to control the skipping of uninteresting fields.&#160;&lt;/p&gt;</comment>
                            <comment id="387685" author="JIRAUSER18019" created="Thu, 28 Sep 2023 19:45:28 +0000"  >&lt;p&gt;&lt;a href=&quot;https://jira.whamcloud.com/secure/ViewProfile.jspa?name=adilger&quot; class=&quot;user-hover&quot; rel=&quot;adilger&quot;&gt;adilger&lt;/a&gt;... I like your &quot;riff&quot; on my earlier suggestion. Your suggestion of omitting unnecessary elements (e.g. mirror if there&apos;s only one) is elegant. I ponder if --json output would be better machine-parseable if that&apos;s needed.&lt;/p&gt;</comment>
                            <comment id="387711" author="adilger" created="Fri, 29 Sep 2023 01:26:56 +0000"  >&lt;p&gt;We already have a &quot;&lt;tt&gt;lfs getstripe &amp;#45;&amp;#45;yaml&lt;/tt&gt;&quot; output option, and an &quot;&lt;tt&gt;lfs setstripe &amp;#45;&amp;#45;yaml&lt;/tt&gt;&quot; option to consume that output.  We don&apos;t need another machine readable format, this ticket is about having a &lt;em&gt;human&lt;/em&gt; readable format.  Anyway, I think JSON is ugly for humans because of the excess of quotes around everything, while YAML can be made both human and machine friendly.&lt;/p&gt;

&lt;p&gt;While my output looks similar to YAML, that is only because YAML was intended to be friendly for humans to read and use &quot;normal&quot; layouts.  The output is not actually YAML, and shouldn&apos;t be used for anything except human consumption.&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|i03x27:</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="10023"><![CDATA[4]]></customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                                                                                                        </customfields>
    </item>
</channel>
</rss>