<!-- 
RSS generated by JIRA (9.4.14#940014-sha1:734e6822bbf0d45eff9af51f82432957f73aa32c) at Sat Feb 10 02:20:04 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-8731] lfs df exits with status 0 on failures</title>
                <link>https://jira.whamcloud.com/browse/LU-8731</link>
                <project id="10000" key="LU">Lustre</project>
                    <description>&lt;p&gt;In lfs.c the &lt;tt&gt;mntdf()&lt;/tt&gt; function does not propagate errors from &lt;tt&gt;llapi_obd_statfs()&lt;/tt&gt;. In fact it always returns 0 (except when an invalid pool is specified). This means that &apos;lfs df&apos; will not fail in some cases that it probably should. For example in the following case&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 df /mnt/lustre
UUID                   1K-blocks        Used   Available Use% Mounted on
lustre-MDT0000_UUID : Input/output error
lustre-MDT0001_UUID       125368        1692      114316   1% /mnt/lustre[MDT:1]
error: llapi_obd_statfs: opening &apos;/mnt/lustre&apos;: Cannot send after transport endpoint shutdown (108)
lustre-OST0000_UUID       350360       13900      316988   4% /mnt/lustre[OST:0]
lustre-OST0001_UUID       350360       13904      316984   4% /mnt/lustre[OST:1]

filesystem summary:       700720       27804      633972   4% /mnt/lustre
# echo $?
0
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;

&lt;p&gt;Importantly this also means that the &lt;tt&gt;lfs_df_check()&lt;/tt&gt; function from &lt;tt&gt;test-framework.sh&lt;/tt&gt; which is used by &lt;tt&gt;client_up()&lt;/tt&gt; and &lt;tt&gt;clients_up()&lt;/tt&gt; is broken:&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;lfs_df_check() {
        local clients=${1:-$CLIENTS}

	&lt;span class=&quot;code-keyword&quot;&gt;if&lt;/span&gt; [ -z &lt;span class=&quot;code-quote&quot;&gt;&quot;$clients&quot;&lt;/span&gt; ]; then
                $LFS df $MOUNT
        &lt;span class=&quot;code-keyword&quot;&gt;else&lt;/span&gt;
                $PDSH $clients &lt;span class=&quot;code-quote&quot;&gt;&quot;$LFS df $MOUNT&quot;&lt;/span&gt; &amp;gt; /dev/&lt;span class=&quot;code-keyword&quot;&gt;null&lt;/span&gt;
        fi
}

clients_up() {
        # not every config has many clients
        sleep 1
        lfs_df_check
}

client_up() {
        # usually checked on particular client or locally
        sleep 1
	lfs_df_check $1
}
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;</description>
                <environment></environment>
        <key id="40804">LU-8731</key>
            <summary>lfs df exits with status 0 on failures</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="jhammond">John Hammond</assignee>
                                    <reporter username="jhammond">John Hammond</reporter>
                        <labels>
                            <label>test</label>
                    </labels>
                <created>Wed, 19 Oct 2016 13:48:15 +0000</created>
                <updated>Fri, 20 Jan 2017 21:29:10 +0000</updated>
                            <resolved>Sat, 29 Oct 2016 00:25:06 +0000</resolved>
                                    <version>Lustre 2.9.0</version>
                                    <fixVersion>Lustre 2.9.0</fixVersion>
                                        <due></due>
                            <votes>0</votes>
                                    <watches>5</watches>
                                                                            <comments>
                            <comment id="170471" author="gerrit" created="Thu, 20 Oct 2016 16:57:59 +0000"  >&lt;p&gt;John L. Hammond (john.hammond@intel.com) uploaded a new patch: &lt;a href=&quot;http://review.whamcloud.com/23286&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;http://review.whamcloud.com/23286&lt;/a&gt;&lt;br/&gt;
Subject: &lt;a href=&quot;https://jira.whamcloud.com/browse/LU-8731&quot; title=&quot;lfs df exits with status 0 on failures&quot; class=&quot;issue-link&quot; data-issue-key=&quot;LU-8731&quot;&gt;&lt;del&gt;LU-8731&lt;/del&gt;&lt;/a&gt; utils: propagate errors in lfs df&lt;br/&gt;
Project: fs/lustre-release&lt;br/&gt;
Branch: master&lt;br/&gt;
Current Patch Set: 1&lt;br/&gt;
Commit: b01039eb79ce652f3d7724ffbb41be2151591b2d&lt;/p&gt;</comment>
                            <comment id="171680" author="gerrit" created="Fri, 28 Oct 2016 23:50:42 +0000"  >&lt;p&gt;Oleg Drokin (oleg.drokin@intel.com) merged in patch &lt;a href=&quot;http://review.whamcloud.com/23286/&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;http://review.whamcloud.com/23286/&lt;/a&gt;&lt;br/&gt;
Subject: &lt;a href=&quot;https://jira.whamcloud.com/browse/LU-8731&quot; title=&quot;lfs df exits with status 0 on failures&quot; class=&quot;issue-link&quot; data-issue-key=&quot;LU-8731&quot;&gt;&lt;del&gt;LU-8731&lt;/del&gt;&lt;/a&gt; utils: propagate errors in lfs df&lt;br/&gt;
Project: fs/lustre-release&lt;br/&gt;
Branch: master&lt;br/&gt;
Current Patch Set: &lt;br/&gt;
Commit: bfd4600f31691fdad676a8489f591bccc24f2100&lt;/p&gt;</comment>
                            <comment id="171698" author="pjones" created="Sat, 29 Oct 2016 00:25:06 +0000"  >&lt;p&gt;Landed for 2.9&lt;/p&gt;</comment>
                    </comments>
                <issuelinks>
                            <issuelinktype id="10011">
                    <name>Related</name>
                                            <outwardlinks description="is related to ">
                                        <issuelink>
            <issuekey id="39122">LU-8544</issuekey>
        </issuelink>
            <issuelink>
            <issuekey id="34559">LU-7759</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|hzysgv:</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>