<!-- 
RSS generated by JIRA (9.4.14#940014-sha1:734e6822bbf0d45eff9af51f82432957f73aa32c) at Sat Feb 10 01:37:54 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-3899] lfs getstripe --raw option is ignored</title>
                <link>https://jira.whamcloud.com/browse/LU-3899</link>
                <project id="10000" key="LU">Lustre</project>
                    <description>&lt;p&gt;It seems that the lfs getstripe --raw option is ignored as well as -R.&lt;/p&gt;

&lt;div class=&quot;code panel&quot; style=&quot;border-width: 1px;&quot;&gt;&lt;div class=&quot;codeContent panelContent&quot;&gt;
&lt;pre class=&quot;code-java&quot;&gt;[root@coolermaster lustre]# lfs getstripe -R y/a 
y/a
lmm_stripe_count:   5
lmm_stripe_size:    1048576
lmm_layout_gen:     0
lmm_stripe_offset:  6
        obdidx           objid           objid           group
             6               4            0x4                0
             0              16           0x10                0
             5               6            0x6                0
             4               4            0x4                0
             2               4            0x4                0

[root@coolermaster lustre]# lfs getstripe y/a 
y/a
lmm_stripe_count:   5
lmm_stripe_size:    1048576
lmm_layout_gen:     0
lmm_stripe_offset:  6
        obdidx           objid           objid           group
             6               4            0x4                0
             0              16           0x10                0
             5               6            0x6                0
             4               4            0x4                0
             2               4            0x4                0
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;</description>
                <environment></environment>
        <key id="20841">LU-3899</key>
            <summary>lfs getstripe --raw option is ignored</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="6">Not a Bug</resolution>
                                        <assignee username="wc-triage">WC Triage</assignee>
                                    <reporter username="cfaber#1">Colin Faber [X]</reporter>
                        <labels>
                    </labels>
                <created>Fri, 6 Sep 2013 18:18:02 +0000</created>
                <updated>Wed, 28 May 2014 04:32:39 +0000</updated>
                            <resolved>Wed, 28 May 2014 04:32:39 +0000</resolved>
                                    <version>Lustre 2.4.1</version>
                    <version>Lustre 2.5.0</version>
                                                        <due></due>
                            <votes>0</votes>
                                    <watches>2</watches>
                                                                            <comments>
                            <comment id="66076" author="jlevi" created="Mon, 9 Sep 2013 16:05:32 +0000"  >&lt;p&gt;Possibly related to &lt;a href=&quot;https://jira.whamcloud.com/browse/LU-3898&quot; title=&quot;lfs getstripe recusively fetches stripe information without being asked to&quot; class=&quot;issue-link&quot; data-issue-key=&quot;LU-3898&quot;&gt;&lt;del&gt;LU-3898&lt;/del&gt;&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="68528" author="adilger" created="Mon, 7 Oct 2013 19:15:49 +0000"  >&lt;p&gt;Colin, I&apos;m not sure what you are expecting here?  The &quot;--raw&quot; argument is only meaningful for directories, and has no meaning for regular files (which is the case of your original report).&lt;/p&gt;

&lt;p&gt;The default striping set on a directory allows &quot;passthrough&quot; to the filesystem-wide striping (i.e. any values which are not specified are the default).  The &quot;--raw&quot; argument means &quot;tell me the actual layout specified for the directory, not what it would be if a new file is created in the directory&quot;.  For example (on current master):&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;# mkdir /mnt/testfs/foo
# lfs getstripe /mnt/testfs/foo
/mnt/testfs/foo
stripe_count:   1 stripe_size:    1048576 stripe_offset:  -1 
# lfs getstripe --raw /mnt/testfs/foo
/mnt/testfs/foo
stripe_count:   0 stripe_size:    0 stripe_offset:  -1 
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;

&lt;p&gt;This shows that there is no default striping specified on the directory at all.&lt;/p&gt;

&lt;p&gt;If the stripe count is explicitly set to 3 (without changing anything else), the normal getstripe output will still show the &quot;combined&quot; striping, but the --raw output shows only the layout that was actually set on the directory:&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 setstripe -c 3 /mnt/testfs/foo 
# lfs getstripe /mnt/testfs/foo
/mnt/testfs/foo
stripe_count:   3 stripe_size:    1048576 stripe_offset:  -1 
# lfs getstripe --raw /mnt/testfs/foo
/mnt/testfs/foo
stripe_count:   3 stripe_size:    0 stripe_offset:  -1 
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;</comment>
                    </comments>
                <issuelinks>
                            <issuelinktype id="10011">
                    <name>Related</name>
                                            <outwardlinks description="is related to ">
                                        <issuelink>
            <issuekey id="20840">LU-3898</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|hzw0tb:</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_10090" key="com.pyxis.greenhopper.jira:gh-global-rank">
                        <customfieldname>Rank (Obsolete)</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>10212</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>