<!-- 
RSS generated by JIRA (9.4.14#940014-sha1:734e6822bbf0d45eff9af51f82432957f73aa32c) at Sat Feb 10 02:00:41 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-6491] Confusing results for too long fsname</title>
                <link>https://jira.whamcloud.com/browse/LU-6491</link>
                <project id="10000" key="LU">Lustre</project>
                    <description>&lt;p&gt; If users passed a fsname longer than 9 bytes, caller&lt;br/&gt;
  will handle it as ENOMEM which output following results:&lt;/p&gt;

&lt;p&gt;  error: conf_param: Cannot allocate memory&lt;/p&gt;

&lt;p&gt; which is really unfriendly for common users.&lt;/p&gt;</description>
                <environment></environment>
        <key id="29636">LU-6491</key>
            <summary>Confusing results for too long fsname</summary>
                <type id="1" iconUrl="https://jira.whamcloud.com/secure/viewavatar?size=xsmall&amp;avatarId=11303&amp;avatarType=issuetype">Bug</type>
                                            <priority id="5" iconUrl="https://jira.whamcloud.com/images/icons/priorities/trivial.svg">Trivial</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="emoly.liu">Emoly Liu</assignee>
                                    <reporter username="wangshilong">Wang Shilong</reporter>
                        <labels>
                    </labels>
                <created>Fri, 24 Apr 2015 05:41:01 +0000</created>
                <updated>Thu, 28 May 2015 22:31:59 +0000</updated>
                            <resolved>Thu, 28 May 2015 22:31:59 +0000</resolved>
                                                    <fixVersion>Lustre 2.8.0</fixVersion>
                                        <due></due>
                            <votes>0</votes>
                                    <watches>3</watches>
                                                                            <comments>
                            <comment id="113284" author="wangshilong" created="Fri, 24 Apr 2015 07:04:50 +0000"  >&lt;p&gt;I missed to migrate my google account for gerrit, but i think here should fix it.&lt;br/&gt;
diff --git a/lustre/mgs/mgs_llog.c b/lustre/mgs/mgs_llog.c&lt;br/&gt;
index d804de4..2f36696 100644&lt;br/&gt;
&amp;#8212; a/lustre/mgs/mgs_llog.c&lt;br/&gt;
+++ b/lustre/mgs/mgs_llog.c&lt;br/&gt;
@@ -334,12 +334,12 @@ static struct fs_db *mgs_new_fsdb(const struct lu_env *env,&lt;/p&gt;

&lt;p&gt;         if (strlen(fsname) &amp;gt;= sizeof(fsdb-&amp;gt;fsdb_name)) &lt;/p&gt;
{
                 CERROR(&quot;fsname %s is too long\n&quot;, fsname);
-                RETURN(NULL);
+                RETURN(ERR_PTR(-EINVAL));
         }

&lt;p&gt;         OBD_ALLOC_PTR(fsdb);&lt;br/&gt;
         if (!fsdb)&lt;/p&gt;
&lt;ul class=&quot;alternate&quot; type=&quot;square&quot;&gt;
	&lt;li&gt;RETURN(NULL);&lt;br/&gt;
+                RETURN(ERR_PTR(-ENOMEM));&lt;/li&gt;
&lt;/ul&gt;


&lt;p&gt;         strcpy(fsdb-&amp;gt;fsdb_name, fsname);&lt;br/&gt;
        mutex_init(&amp;amp;fsdb-&amp;gt;fsdb_mutex);&lt;br/&gt;
@@ -380,7 +380,7 @@ err:&lt;br/&gt;
         name_destroy(&amp;amp;fsdb-&amp;gt;fsdb_clilov);&lt;br/&gt;
         name_destroy(&amp;amp;fsdb-&amp;gt;fsdb_clilmv);&lt;br/&gt;
         OBD_FREE_PTR(fsdb);&lt;/p&gt;
&lt;ul class=&quot;alternate&quot; type=&quot;square&quot;&gt;
	&lt;li&gt;RETURN(NULL);&lt;br/&gt;
+        RETURN(ERR_PTR(rc));&lt;br/&gt;
 }&lt;/li&gt;
&lt;/ul&gt;


&lt;p&gt; static void mgs_free_fsdb(struct mgs_device *mgs, struct fs_db *fsdb)&lt;br/&gt;
@@ -443,11 +443,11 @@ int mgs_find_or_make_fsdb(const struct lu_env *env,&lt;br/&gt;
         CDEBUG(D_MGS, &quot;Creating new db\n&quot;);&lt;br/&gt;
        fsdb = mgs_new_fsdb(env, mgs, name);&lt;br/&gt;
        /* lock fsdb_mutex until the db is loaded from llogs */&lt;/p&gt;
&lt;ul class=&quot;alternate&quot; type=&quot;square&quot;&gt;
	&lt;li&gt;if (fsdb)&lt;br/&gt;
+       if (!IS_ERR(fsdb))&lt;br/&gt;
                mutex_lock(&amp;amp;fsdb-&amp;gt;fsdb_mutex);&lt;br/&gt;
        mutex_unlock(&amp;amp;mgs-&amp;gt;mgs_mutex);&lt;/li&gt;
	&lt;li&gt;if (!fsdb)&lt;/li&gt;
	&lt;li&gt;RETURN(-ENOMEM);&lt;br/&gt;
+        if (IS_ERR(fsdb))&lt;br/&gt;
+               RETURN(PTR_ERR(fsdb));&lt;/li&gt;
&lt;/ul&gt;


&lt;p&gt;        if (!test_bit(FSDB_MGS_SELF, &amp;amp;fsdb-&amp;gt;fsdb_flags)) {&lt;br/&gt;
                 /* populate the db from the client llog */&lt;/p&gt;</comment>
                            <comment id="113314" author="gerrit" created="Fri, 24 Apr 2015 16:11:27 +0000"  >&lt;p&gt;Shilong Wang (wshilong@ddn.com) uploaded a new patch: &lt;a href=&quot;http://review.whamcloud.com/14568&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;http://review.whamcloud.com/14568&lt;/a&gt;&lt;br/&gt;
Subject: &lt;a href=&quot;https://jira.whamcloud.com/browse/LU-6491&quot; title=&quot;Confusing results for too long fsname&quot; class=&quot;issue-link&quot; data-issue-key=&quot;LU-6491&quot;&gt;&lt;del&gt;LU-6491&lt;/del&gt;&lt;/a&gt; llog: fix wrong return value for too long fsname&lt;br/&gt;
Project: fs/lustre-release&lt;br/&gt;
Branch: master&lt;br/&gt;
Current Patch Set: 1&lt;br/&gt;
Commit: 88b4af7b6e98462ccf8a62252d2442bd9ef8c416&lt;/p&gt;</comment>
                            <comment id="113317" author="pjones" created="Fri, 24 Apr 2015 17:07:23 +0000"  >&lt;p&gt;Emoly&lt;/p&gt;

&lt;p&gt;Could you please take care of this patch?&lt;/p&gt;

&lt;p&gt;Thanks&lt;/p&gt;

&lt;p&gt;Peter&lt;/p&gt;</comment>
                            <comment id="116778" author="gerrit" created="Thu, 28 May 2015 22:27:11 +0000"  >&lt;p&gt;Oleg Drokin (oleg.drokin@intel.com) merged in patch &lt;a href=&quot;http://review.whamcloud.com/14568/&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;http://review.whamcloud.com/14568/&lt;/a&gt;&lt;br/&gt;
Subject: &lt;a href=&quot;https://jira.whamcloud.com/browse/LU-6491&quot; title=&quot;Confusing results for too long fsname&quot; class=&quot;issue-link&quot; data-issue-key=&quot;LU-6491&quot;&gt;&lt;del&gt;LU-6491&lt;/del&gt;&lt;/a&gt; llog: fix wrong return value for too long fsname&lt;br/&gt;
Project: fs/lustre-release&lt;br/&gt;
Branch: master&lt;br/&gt;
Current Patch Set: &lt;br/&gt;
Commit: 5b6d23d7fb8de7ae44ca369381a128c78f78bf21&lt;/p&gt;</comment>
                            <comment id="116780" author="pjones" created="Thu, 28 May 2015 22:31:59 +0000"  >&lt;p&gt;Landed for 2.8&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_10030" key="com.atlassian.jira.plugin.system.customfieldtypes:labels">
                        <customfieldname>Epic/Theme</customfieldname>
                        <customfieldvalues>
                                        <label>patch</label>
    
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                        <customfield id="customfield_10390" key="com.pyxis.greenhopper.jira:gh-lexo-rank">
                        <customfieldname>Rank</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>1|hzxbh3:</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>