<!-- 
RSS generated by JIRA (9.4.14#940014-sha1:734e6822bbf0d45eff9af51f82432957f73aa32c) at Sat Feb 10 02:19:09 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-8621] Parser_execarg() prints help to stderr, usage to stdout</title>
                <link>https://jira.whamcloud.com/browse/LU-8621</link>
                <project id="10000" key="LU">Lustre</project>
                    <description>&lt;p&gt;When running &lt;tt&gt;lfs CMD --help&lt;/tt&gt; or &lt;tt&gt;lctl CMD --help&lt;/tt&gt; the help message is printed to stderr. By convention stdout should be used instead.&lt;/p&gt;

&lt;p&gt;When using lfs or lctl, if an unrecognized command is passed to &lt;tt&gt;Parser_execarg()&lt;/tt&gt; we get a 100+ line usage message printed to stdout.&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;# lctl barf
Try interactive use without arguments or use one of:
&quot;===== metacommands =======&quot;
&quot;--device&quot;
&quot;--ignore_errors&quot;
&quot;ignore_errors&quot;
&quot;======== control =========&quot;
&quot;help&quot;
&quot;lustre_build_version&quot;
&quot;exit&quot;
&quot;quit&quot;
...
&quot;llog_print&quot;
&quot;llog_check&quot;
&quot;llog_cancel&quot;
&quot;llog_remove&quot;
&quot;add_interface&quot;
&quot;del_interface&quot;
&quot;add_route&quot;
&quot;del_route&quot;
&quot;set_route&quot;
as argument.
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;
&lt;ol&gt;
	&lt;li&gt;We shouldn&apos;t spam the terminal with so many lines of output for an unrecognized command.&lt;/li&gt;
	&lt;li&gt;We need to print the command that was passed.
&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;# git barf
git: &apos;barf&apos; is not a git command. See &apos;git --help&apos;.

Did you mean this?
	branch
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;&lt;/li&gt;
&lt;/ol&gt;
</description>
                <environment></environment>
        <key id="39886">LU-8621</key>
            <summary>Parser_execarg() prints help to stderr, usage to stdout</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="1">Fixed</resolution>
                                        <assignee username="aalyaev">Aleksei Alyaev</assignee>
                                    <reporter username="jhammond">John Hammond</reporter>
                        <labels>
                            <label>easy</label>
                            <label>utils</label>
                    </labels>
                <created>Fri, 16 Sep 2016 13:42:53 +0000</created>
                <updated>Tue, 20 Dec 2022 05:39:57 +0000</updated>
                            <resolved>Mon, 11 Jul 2022 13:29:51 +0000</resolved>
                                                    <fixVersion>Lustre 2.16.0</fixVersion>
                                        <due></due>
                            <votes>0</votes>
                                    <watches>4</watches>
                                                                            <comments>
                            <comment id="333233" author="gerrit" created="Thu, 28 Apr 2022 03:44:27 +0000"  >&lt;p&gt;&quot;Andreas Dilger &amp;lt;adilger@whamcloud.com&amp;gt;&quot; uploaded a new patch: &lt;a href=&quot;https://review.whamcloud.com/47162&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://review.whamcloud.com/47162&lt;/a&gt;&lt;br/&gt;
Subject: &lt;a href=&quot;https://jira.whamcloud.com/browse/LU-8621&quot; title=&quot;Parser_execarg() prints help to stderr, usage to stdout&quot; class=&quot;issue-link&quot; data-issue-key=&quot;LU-8621&quot;&gt;&lt;del&gt;LU-8621&lt;/del&gt;&lt;/a&gt; utils: cmd help to stdout or short cmd error&lt;br/&gt;
Project: fs/lustre-release&lt;br/&gt;
Branch: master&lt;br/&gt;
Current Patch Set: 1&lt;br/&gt;
Commit: ab80394f9bb2a49c61f14499843c974a1db7aece&lt;/p&gt;</comment>
                            <comment id="340018" author="gerrit" created="Mon, 11 Jul 2022 06:51:10 +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/47162/&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://review.whamcloud.com/47162/&lt;/a&gt;&lt;br/&gt;
Subject: &lt;a href=&quot;https://jira.whamcloud.com/browse/LU-8621&quot; title=&quot;Parser_execarg() prints help to stderr, usage to stdout&quot; class=&quot;issue-link&quot; data-issue-key=&quot;LU-8621&quot;&gt;&lt;del&gt;LU-8621&lt;/del&gt;&lt;/a&gt; utils: cmd help to stdout or short cmd error&lt;br/&gt;
Project: fs/lustre-release&lt;br/&gt;
Branch: master&lt;br/&gt;
Current Patch Set: &lt;br/&gt;
Commit: bc69a8d058f5bcdb75e062df57a6ccd23243d1e0&lt;/p&gt;</comment>
                            <comment id="340048" author="pjones" created="Mon, 11 Jul 2022 13:29:51 +0000"  >&lt;p&gt;Landed for 2.16&lt;/p&gt;</comment>
                            <comment id="340141" author="bzzz" created="Tue, 12 Jul 2022 09:44:07 +0000"  >&lt;p&gt;somehow this patch breaks sanity-quota/8:&lt;/p&gt;
&lt;blockquote&gt;
&lt;p&gt;Throughput 4.31965 MB/sec  3 clients  3 procs  max_latency=152.458 ms&lt;br/&gt;
 sanity-quota test_8: @@@@@@ FAIL: test_8 failed with 1 &lt;br/&gt;
  Trace dump:&lt;br/&gt;
  = ./../tests/test-framework.sh:6522:error()&lt;br/&gt;
  = ./../tests/test-framework.sh:6858:run_one()&lt;br/&gt;
  = ./../tests/test-framework.sh:6905:run_one_logged()&lt;br/&gt;
  = ./../tests/test-framework.sh:6730:run_test()&lt;br/&gt;
  = sanity-quota.sh:2299:main()&lt;br/&gt;
Dumping lctl log to /tmp/ltest-logs/sanity-quota.test_8.*.1657617064.log&lt;br/&gt;
Dumping logs only on local client.&lt;br/&gt;
Delete files...&lt;br/&gt;
Wait for unlink objects finished...&lt;br/&gt;
Waiting for MDT destroys to complete&lt;br/&gt;
test_8 returned 1&lt;br/&gt;
FAIL 8 (182s)&lt;/p&gt;&lt;/blockquote&gt;

&lt;p&gt;bisection result:&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;
COMMIT		TESTED	PASSED	FAILED		COMMIT DESCRIPTION
210803a247	1	0	1	BAD	LU-15653 client: able to cleanup devices manually
a21ce928aa	1	0	1	BAD	LU-15894 ofd: revert range locking in ofd
b2dfb4457f	1	0	1	BAD	LU-15759 libcfs: debugfs file_operation should have an owner
98ba508190	1	0	1	BAD	LU-15779 ofd: don&apos;t hold read lock over bulk
0396310692	1	0	1	BAD	LU-15727 lod: honor append_pool with &lt;span class=&quot;code-keyword&quot;&gt;default&lt;/span&gt; composite layouts
71d63602c5	1	0	1	BAD	LU-15922 sec: &lt;span class=&quot;code-keyword&quot;&gt;new&lt;/span&gt; connect flag &lt;span class=&quot;code-keyword&quot;&gt;for&lt;/span&gt; name encryption
4a2498d22f	1	0	1	BAD	LU-15952 doc: improvement on lfs-project doc
9bf968db56	1	0	1	BAD	LU-15942 utils: ofd_access_log_reader exit status
e3a4dc406f	1	0	1	BAD	LU-15931 tests: Escape * in log()
bc69a8d058	1	0	1	BAD	LU-8621 utils: cmd help to stdout or &lt;span class=&quot;code-object&quot;&gt;short&lt;/span&gt; cmd error
6ab060e58e	4	4	0		LU-14555 lnet: asym route inconsistency warning
6bceb0030d	4	4	0		LU-13335 ldiskfs: add projid to debug logs
aa22a6826e	4	4	0		LU-15481 llog: Add LLOG_SKIP_PLAIN to skip llog plain
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;</comment>
                    </comments>
                <issuelinks>
                            <issuelinktype id="10011">
                    <name>Related</name>
                                                                <inwardlinks description="is related to">
                                        <issuelink>
            <issuekey id="73612">LU-16392</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|hzyosf:</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>