<!-- 
RSS generated by JIRA (9.4.14#940014-sha1:734e6822bbf0d45eff9af51f82432957f73aa32c) at Sat Feb 10 02:19:34 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-8671] bad error handling in mgs_object_init</title>
                <link>https://jira.whamcloud.com/browse/LU-8671</link>
                <project id="10000" key="LU">Lustre</project>
                    <description>&lt;p&gt;The function mgs_object_init() lost an error code return and always return zero as success.&lt;br/&gt;
Need to return proper error code.&lt;/p&gt;

&lt;p&gt;lustre-wc-rel/lustre/mgs/mgs_handler.c:&lt;br/&gt;
static int mgs_object_init(const struct lu_env *env, struct lu_object *o,&lt;br/&gt;
			   const struct lu_object_conf *unused)&lt;br/&gt;
{&lt;br/&gt;
	struct mgs_device *d = lu2mgs_dev(o-&amp;gt;lo_dev);&lt;br/&gt;
	struct lu_device  *under;&lt;br/&gt;
	struct lu_object  *below;&lt;br/&gt;
	int                rc = 0;&lt;br/&gt;
	ENTRY;&lt;/p&gt;

&lt;p&gt;	/* do no set .do_ops as mgs calls to bottom osd directly */&lt;/p&gt;

&lt;p&gt;	CDEBUG(D_INFO, &quot;object init, fid = &quot;DFID&quot;\n&quot;,&lt;br/&gt;
			PFID(lu_object_fid(o)));&lt;/p&gt;

&lt;p&gt;	under = &amp;amp;d-&amp;gt;mgs_bottom-&amp;gt;dd_lu_dev;&lt;br/&gt;
	below = under-&amp;gt;ld_ops-&amp;gt;ldo_object_alloc(env, o-&amp;gt;lo_header, under);&lt;br/&gt;
	if (below != NULL)&lt;br/&gt;
		lu_object_add(o, below);&lt;br/&gt;
	else&lt;br/&gt;
		rc = &lt;del&gt;ENOMEM;&amp;lt;&lt;/del&gt;-- Variable &apos;rc&apos; is assigned a value that is never used.&lt;/p&gt;

&lt;p&gt;	return 0;&lt;br/&gt;
}&lt;/p&gt;</description>
                <environment></environment>
        <key id="40311">LU-8671</key>
            <summary>bad error handling in mgs_object_init</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="3">Duplicate</resolution>
                                        <assignee username="wc-triage">WC Triage</assignee>
                                    <reporter username="maximus">Ashish Purkar</reporter>
                        <labels>
                            <label>patch</label>
                    </labels>
                <created>Thu, 6 Oct 2016 04:13:10 +0000</created>
                <updated>Thu, 8 Nov 2018 21:10:17 +0000</updated>
                            <resolved>Thu, 8 Nov 2018 21:10:17 +0000</resolved>
                                                                        <due></due>
                            <votes>0</votes>
                                    <watches>2</watches>
                                                                            <comments>
                            <comment id="168459" author="gerrit" created="Thu, 6 Oct 2016 04:18:08 +0000"  >&lt;p&gt;Ashish Purkar (ashish.purkar@seagate.com) uploaded a new patch: &lt;a href=&quot;http://review.whamcloud.com/22973&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;http://review.whamcloud.com/22973&lt;/a&gt;&lt;br/&gt;
Subject: &lt;a href=&quot;https://jira.whamcloud.com/browse/LU-8671&quot; title=&quot;bad error handling in mgs_object_init&quot; class=&quot;issue-link&quot; data-issue-key=&quot;LU-8671&quot;&gt;&lt;del&gt;LU-8671&lt;/del&gt;&lt;/a&gt; mgs: correct error handling in mgs_object_init()&lt;br/&gt;
Project: fs/lustre-release&lt;br/&gt;
Branch: master&lt;br/&gt;
Current Patch Set: 1&lt;br/&gt;
Commit: 8f9b3b257467a564ba91bbabade5dab21ccd521c&lt;/p&gt;</comment>
                            <comment id="168472" author="maximus" created="Thu, 6 Oct 2016 09:34:35 +0000"  >&lt;p&gt;lustre-wc-rel/lustre/mgs/mgs_handler.c:&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;&lt;span class=&quot;code-keyword&quot;&gt;static&lt;/span&gt; &lt;span class=&quot;code-object&quot;&gt;int&lt;/span&gt; mgs_object_init(&lt;span class=&quot;code-keyword&quot;&gt;const&lt;/span&gt; struct lu_env *env, struct lu_object *o,
			   &lt;span class=&quot;code-keyword&quot;&gt;const&lt;/span&gt; struct lu_object_conf *unused)
{
	struct mgs_device *d = lu2mgs_dev(o-&amp;gt;lo_dev);
	struct lu_device  *under;
	struct lu_object  *below;
	&lt;span class=&quot;code-object&quot;&gt;int&lt;/span&gt;                rc = 0;
	ENTRY;

	&lt;span class=&quot;code-comment&quot;&gt;/* &lt;span class=&quot;code-keyword&quot;&gt;do&lt;/span&gt; no set .do_ops as mgs calls to bottom osd directly */&lt;/span&gt;

	CDEBUG(D_INFO, &lt;span class=&quot;code-quote&quot;&gt;&quot;object init, fid = &quot;&lt;/span&gt;DFID&lt;span class=&quot;code-quote&quot;&gt;&quot;\n&quot;&lt;/span&gt;,
			PFID(lu_object_fid(o)));

	under = &amp;amp;d-&amp;gt;mgs_bottom-&amp;gt;dd_lu_dev;
	below = under-&amp;gt;ld_ops-&amp;gt;ldo_object_alloc(env, o-&amp;gt;lo_header, under);
	&lt;span class=&quot;code-keyword&quot;&gt;if&lt;/span&gt; (below != NULL)
		lu_object_add(o, below);
	&lt;span class=&quot;code-keyword&quot;&gt;else&lt;/span&gt;
		rc = -ENOMEM;&amp;lt;--- Variable &lt;span class=&quot;code-quote&quot;&gt;&apos;rc&apos;&lt;/span&gt; is assigned a value that is never used.

	&lt;span class=&quot;code-keyword&quot;&gt;return&lt;/span&gt; 0;
}
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;</comment>
                            <comment id="236698" author="adilger" created="Thu, 8 Nov 2018 21:10:17 +0000"  >&lt;p&gt;This is fixed in patch &lt;a href=&quot;http://review.whamcloud.com/23221&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;http://review.whamcloud.com/23221&lt;/a&gt; &quot;&lt;a href=&quot;https://jira.whamcloud.com/browse/LU-8378&quot; title=&quot;unused but set variables&quot; class=&quot;issue-link&quot; data-issue-key=&quot;LU-8378&quot;&gt;&lt;del&gt;LU-8378&lt;/del&gt;&lt;/a&gt; all: remove set but unused variables&quot;&lt;/p&gt;</comment>
                    </comments>
                <issuelinks>
                            <issuelinktype id="10010">
                    <name>Duplicate</name>
                                            <outwardlinks description="duplicates">
                                        <issuelink>
            <issuekey id="38024">LU-8378</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|hzyqlj:</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>