<!-- 
RSS generated by JIRA (9.4.14#940014-sha1:734e6822bbf0d45eff9af51f82432957f73aa32c) at Sat Feb 10 02:53:08 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-12501] lfs df can never return</title>
                <link>https://jira.whamcloud.com/browse/LU-12501</link>
                <project id="10000" key="LU">Lustre</project>
                    <description>&lt;p&gt;In recent testing I have encounter cases were running lfs df never returns. Today I sat down to track down why it never returns. The reason is this loop never exits in showdf() in lfs.c.&lt;/p&gt;

&lt;p&gt;&lt;b&gt;for&lt;/b&gt; (i = &lt;b&gt;0&lt;/b&gt;, state = stat-&amp;gt;os_state; state != &lt;b&gt;0&lt;/b&gt;; i++) &lt;/p&gt;
{

...

}</description>
                <environment>Any lustre client</environment>
        <key id="56247">LU-12501</key>
            <summary>lfs df can never return</summary>
                <type id="1" iconUrl="https://jira.whamcloud.com/secure/viewavatar?size=xsmall&amp;avatarId=11303&amp;avatarType=issuetype">Bug</type>
                                            <priority id="3" iconUrl="https://jira.whamcloud.com/images/icons/priorities/major.svg">Major</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="adilger">Andreas Dilger</assignee>
                                    <reporter username="simmonsja">James A Simmons</reporter>
                        <labels>
                            <label>patch</label>
                    </labels>
                <created>Mon, 1 Jul 2019 16:30:17 +0000</created>
                <updated>Mon, 12 Aug 2019 03:28:22 +0000</updated>
                            <resolved>Sun, 21 Jul 2019 08:25:02 +0000</resolved>
                                    <version>Lustre 2.13.0</version>
                                    <fixVersion>Lustre 2.13.0</fixVersion>
                    <fixVersion>Lustre 2.12.3</fixVersion>
                                        <due></due>
                            <votes>0</votes>
                                    <watches>4</watches>
                                                                            <comments>
                            <comment id="250432" author="pjones" created="Mon, 1 Jul 2019 17:26:31 +0000"  >&lt;p&gt;James&lt;/p&gt;

&lt;p&gt;Any idea of when this problem first appeared?&lt;/p&gt;

&lt;p&gt;Peter&lt;/p&gt;</comment>
                            <comment id="250433" author="pfarrell" created="Mon, 1 Jul 2019 17:28:28 +0000"  >&lt;p&gt;James,&lt;/p&gt;

&lt;p&gt;When do you see this problem?&#160; It&apos;s clearly not all the time, as we don&apos;t see it in our testing.&lt;/p&gt;</comment>
                            <comment id="250462" author="simmonsja" created="Mon, 1 Jul 2019 22:17:01 +0000"  >&lt;p&gt;The last couple of weeks&#160; I started to see it. For some reason I see this all the time on our test bed.&lt;/p&gt;</comment>
                            <comment id="250475" author="pjones" created="Tue, 2 Jul 2019 04:55:49 +0000"  >&lt;p&gt;Does that mean that you are able to run git bisect to identify the commit that introduced the problem?&lt;/p&gt;</comment>
                            <comment id="250497" author="gerrit" created="Tue, 2 Jul 2019 14:27:38 +0000"  >&lt;p&gt;James Simmons (uja.ornl@yahoo.com) uploaded a new patch: &lt;a href=&quot;https://review.whamcloud.com/35403&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://review.whamcloud.com/35403&lt;/a&gt;&lt;br/&gt;
Subject: &lt;a href=&quot;https://jira.whamcloud.com/browse/LU-12501&quot; title=&quot;lfs df can never return&quot; class=&quot;issue-link&quot; data-issue-key=&quot;LU-12501&quot;&gt;&lt;del&gt;LU-12501&lt;/del&gt;&lt;/a&gt; utils: stop showdf() endless loop&lt;br/&gt;
Project: fs/lustre-release&lt;br/&gt;
Branch: master&lt;br/&gt;
Current Patch Set: 1&lt;br/&gt;
Commit: eba159fd6d2b45689072cd59dff3c77af83c00aa&lt;/p&gt;</comment>
                            <comment id="250498" author="simmonsja" created="Tue, 2 Jul 2019 14:33:18 +0000"  >&lt;p&gt;Yes I tracked the issue Peter. Currently my test setup is all SSDs so I see this problem.&lt;/p&gt;</comment>
                            <comment id="250501" author="pjones" created="Tue, 2 Jul 2019 14:41:32 +0000"  >&lt;p&gt;Aha! Yes, I can see why that would slip through. Thanks James!&lt;/p&gt;</comment>
                            <comment id="250614" author="simmonsja" created="Wed, 3 Jul 2019 16:01:13 +0000"  >&lt;p&gt;So Andreas suggest&#160; a few ideas.&lt;/p&gt;

&lt;p&gt;I&apos;d prefer it even more if the &quot;NONROT&quot; state was added to the obd_statfs_state_names[] array, and was printed with the &quot;MNTDF_VERBOSE&quot; flag is passed, and masked up in mntdf() otherwise. That avoids special-casing the code here, and pushes the &quot;presentation decision&quot; up toward where options are handled.&lt;/p&gt;

&lt;p&gt;As for what letter to use for &quot;NONROT&quot;, one option would be to use a lower-case letter to indicate that it is not a &quot;problem&quot; with the target, like &apos;f&apos; for &quot;flash&quot; or &quot;fast&quot;, but I&apos;m open to other options. I&apos;d prefer to avoid overloading &apos;n&apos; so early.&lt;/p&gt;

&lt;p&gt;We might even consider changing the OS_STATE_NONROT flag to count from 0x80000000 downward to make it possible to programatically separate error states from informational states, even though this would slow down showdf() by a few cycles for flash OSTs. The original NONROT patch was landed as v2_12_53-108-g68635c3, so it isn&apos;t in a 2.13 release yet, and the backport hasn&apos;t been landed to b2_12 yet, so I don&apos;t &lt;em&gt;think&lt;/em&gt; there isn&apos;t a release that includes this flag yet.&lt;/p&gt;

&lt;p&gt;I&apos;m going to do the simplest fix but if someone wants something more we can do another patch to enhance this feature.&lt;/p&gt;</comment>
                            <comment id="250960" author="gerrit" created="Wed, 10 Jul 2019 17:26:05 +0000"  >&lt;p&gt;Andreas Dilger (adilger@whamcloud.com) uploaded a new patch: &lt;a href=&quot;https://review.whamcloud.com/35456&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://review.whamcloud.com/35456&lt;/a&gt;&lt;br/&gt;
Subject: &lt;a href=&quot;https://jira.whamcloud.com/browse/LU-12501&quot; title=&quot;lfs df can never return&quot; class=&quot;issue-link&quot; data-issue-key=&quot;LU-12501&quot;&gt;&lt;del&gt;LU-12501&lt;/del&gt;&lt;/a&gt; utils: fix &apos;lfs df&apos; printing loop&lt;br/&gt;
Project: fs/lustre-release&lt;br/&gt;
Branch: master&lt;br/&gt;
Current Patch Set: 1&lt;br/&gt;
Commit: f9bd4be4e79684099fa0a3d09f7991be991ec180&lt;/p&gt;</comment>
                            <comment id="251754" author="gerrit" created="Sat, 20 Jul 2019 18:38:15 +0000"  >&lt;p&gt;Oleg Drokin (green@whamcloud.com) merged in patch &lt;a href=&quot;https://review.whamcloud.com/35456/&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://review.whamcloud.com/35456/&lt;/a&gt;&lt;br/&gt;
Subject: &lt;a href=&quot;https://jira.whamcloud.com/browse/LU-12501&quot; title=&quot;lfs df can never return&quot; class=&quot;issue-link&quot; data-issue-key=&quot;LU-12501&quot;&gt;&lt;del&gt;LU-12501&lt;/del&gt;&lt;/a&gt; utils: fix &apos;lfs df&apos; printing loop&lt;br/&gt;
Project: fs/lustre-release&lt;br/&gt;
Branch: master&lt;br/&gt;
Current Patch Set: &lt;br/&gt;
Commit: e4d92a8a08acbdca6634decd4deb9fe5678ad7ba&lt;/p&gt;</comment>
                            <comment id="252367" author="gerrit" created="Thu, 1 Aug 2019 01:00:19 +0000"  >&lt;p&gt;Minh Diep (mdiep@whamcloud.com) uploaded a new patch: &lt;a href=&quot;https://review.whamcloud.com/35662&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://review.whamcloud.com/35662&lt;/a&gt;&lt;br/&gt;
Subject: &lt;a href=&quot;https://jira.whamcloud.com/browse/LU-12501&quot; title=&quot;lfs df can never return&quot; class=&quot;issue-link&quot; data-issue-key=&quot;LU-12501&quot;&gt;&lt;del&gt;LU-12501&lt;/del&gt;&lt;/a&gt; utils: fix &apos;lfs df&apos; printing loop&lt;br/&gt;
Project: fs/lustre-release&lt;br/&gt;
Branch: b2_12&lt;br/&gt;
Current Patch Set: 1&lt;br/&gt;
Commit: aa801af165b903b4ae15f0ef975e8b7bf0413878&lt;/p&gt;</comment>
                            <comment id="252940" author="gerrit" created="Sun, 11 Aug 2019 23:33:51 +0000"  >&lt;p&gt;Oleg Drokin (green@whamcloud.com) merged in patch &lt;a href=&quot;https://review.whamcloud.com/35662/&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://review.whamcloud.com/35662/&lt;/a&gt;&lt;br/&gt;
Subject: &lt;a href=&quot;https://jira.whamcloud.com/browse/LU-12501&quot; title=&quot;lfs df can never return&quot; class=&quot;issue-link&quot; data-issue-key=&quot;LU-12501&quot;&gt;&lt;del&gt;LU-12501&lt;/del&gt;&lt;/a&gt; utils: fix &apos;lfs df&apos; printing loop&lt;br/&gt;
Project: fs/lustre-release&lt;br/&gt;
Branch: b2_12&lt;br/&gt;
Current Patch Set: &lt;br/&gt;
Commit: 2734b902c296f3f6cbc1522a579f23bd86d1be45&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|i00j27:</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>