<!-- 
RSS generated by JIRA (9.4.14#940014-sha1:734e6822bbf0d45eff9af51f82432957f73aa32c) at Sat Feb 10 02:04:43 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-6952] Mount options parsing problem</title>
                <link>https://jira.whamcloud.com/browse/LU-6952</link>
                <project id="10000" key="LU">Lustre</project>
                    <description>&lt;p&gt;The code which parse the mount option (lustre/utils/mount_lustre.c: parse_ldd()) expect that the default mount options come first and then the user given options. But actually the default options are appended after the user given option. Because of this user given options are cleared. &lt;/p&gt;

&lt;p&gt;Following code fix this bug:&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;diff --git a/lustre/utils/mount_lustre.c b/lustre/utils/mount_lustre.c
index e4cc51a..44d092c 100644
--- a/lustre/utils/mount_lustre.c
+++ b/lustre/utils/mount_lustre.c
@@ -385,6 +385,7 @@ &lt;span class=&quot;code-keyword&quot;&gt;static&lt;/span&gt; &lt;span class=&quot;code-object&quot;&gt;int&lt;/span&gt; parse_ldd(&lt;span class=&quot;code-object&quot;&gt;char&lt;/span&gt; *source, struct mount_opts *mop, &lt;span class=&quot;code-object&quot;&gt;char&lt;/span&gt; *options)
 {
        struct lustre_disk_data *ldd = &amp;amp;mop-&amp;gt;mo_ldd;
        &lt;span class=&quot;code-object&quot;&gt;char&lt;/span&gt; *cur, *start;
+       &lt;span class=&quot;code-object&quot;&gt;char&lt;/span&gt; *temp_options;
        &lt;span class=&quot;code-object&quot;&gt;int&lt;/span&gt; rc;
 
        rc = osd_is_lustre(source, &amp;amp;ldd-&amp;gt;ldd_mount_type);
@@ -438,12 +439,21 @@ &lt;span class=&quot;code-keyword&quot;&gt;static&lt;/span&gt; &lt;span class=&quot;code-object&quot;&gt;int&lt;/span&gt; parse_ldd(&lt;span class=&quot;code-object&quot;&gt;char&lt;/span&gt; *source, struct mount_opts *mop, &lt;span class=&quot;code-object&quot;&gt;char&lt;/span&gt; *options)
                        ldd-&amp;gt;ldd_flags |= LDD_F_WRITECONF;
                }
        }
+
+       &lt;span class=&quot;code-comment&quot;&gt;/* This is to make sure &lt;span class=&quot;code-keyword&quot;&gt;default&lt;/span&gt; options go first */&lt;/span&gt;
+       temp_options = strdup(options);
+       &lt;span class=&quot;code-keyword&quot;&gt;if&lt;/span&gt; (temp_options == NULL) {
+               fprintf(stderr, &lt;span class=&quot;code-quote&quot;&gt;&quot;can&apos;t allocate memory &lt;span class=&quot;code-keyword&quot;&gt;for&lt;/span&gt; temp_options\n&quot;&lt;/span&gt;);
+               &lt;span class=&quot;code-keyword&quot;&gt;return&lt;/span&gt; ENOMEM;
+       }
+       strcpy(options, ldd-&amp;gt;ldd_mount_opts);
+       append_option(options, temp_options);
+       free(temp_options);
+
        &lt;span class=&quot;code-comment&quot;&gt;/* backend osd type */&lt;/span&gt;
        append_option(options, &lt;span class=&quot;code-quote&quot;&gt;&quot;osd=&quot;&lt;/span&gt;);
        strcat(options, mt_type(ldd-&amp;gt;ldd_mount_type));
 
-       append_option(options, ldd-&amp;gt;ldd_mount_opts);
-
        &lt;span class=&quot;code-keyword&quot;&gt;if&lt;/span&gt; (!mop-&amp;gt;mo_have_mgsnid) {
                /* Only use disk data &lt;span class=&quot;code-keyword&quot;&gt;if&lt;/span&gt; mount -o mgsnode=nid wasn&apos;t
                 * specified */

&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;</description>
                <environment></environment>
        <key id="31346">LU-6952</key>
            <summary>Mount options parsing problem</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="hongchao.zhang">Hongchao Zhang</assignee>
                                    <reporter username="520557">Rahul Deshmukh</reporter>
                        <labels>
                            <label>cea</label>
                            <label>patch</label>
                    </labels>
                <created>Tue, 4 Aug 2015 14:22:09 +0000</created>
                <updated>Fri, 4 Aug 2017 19:41:48 +0000</updated>
                            <resolved>Tue, 16 May 2017 12:53:02 +0000</resolved>
                                    <version>Lustre 2.8.0</version>
                                    <fixVersion>Lustre 2.10.0</fixVersion>
                                        <due></due>
                            <votes>0</votes>
                                    <watches>11</watches>
                                                                            <comments>
                            <comment id="123260" author="adilger" created="Tue, 4 Aug 2015 20:33:30 +0000"  >&lt;p&gt;Is there a reason why you posted the patch as a comment here instead of pushing a patch to Gerrit?&lt;/p&gt;</comment>
                            <comment id="123282" author="520557" created="Wed, 5 Aug 2015 03:16:09 +0000"  >&lt;p&gt;Apology for any confusion. There is no perticular reason for this. Will post the patch to gerrit.&lt;/p&gt;</comment>
                            <comment id="123490" author="adilger" created="Thu, 6 Aug 2015 17:50:56 +0000"  >&lt;p&gt;It looks like the &lt;a href=&quot;https://jira.whamcloud.com/browse/LU-6662&quot; title=&quot;mkfs should allow use of errors=panic&quot; class=&quot;issue-link&quot; data-issue-key=&quot;LU-6662&quot;&gt;&lt;del&gt;LU-6662&lt;/del&gt;&lt;/a&gt; bug is very similar.&lt;/p&gt;</comment>
                            <comment id="123493" author="jgmitter" created="Thu, 6 Aug 2015 17:52:12 +0000"  >&lt;p&gt;Hongchao,&lt;br/&gt;
This looks similar to your patch, can you look at it?&lt;br/&gt;
Thanks.&lt;br/&gt;
Joe&lt;/p&gt;</comment>
                            <comment id="123567" author="gerrit" created="Fri, 7 Aug 2015 08:42:43 +0000"  >&lt;p&gt;pratik.shinde (pratik.shinde@seagate.com) uploaded a new patch: &lt;a href=&quot;http://review.whamcloud.com/15906&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;http://review.whamcloud.com/15906&lt;/a&gt;&lt;br/&gt;
Subject: &lt;a href=&quot;https://jira.whamcloud.com/browse/LU-6952&quot; title=&quot;Mount options parsing problem&quot; class=&quot;issue-link&quot; data-issue-key=&quot;LU-6952&quot;&gt;&lt;del&gt;LU-6952&lt;/del&gt;&lt;/a&gt; mount: Mount options parsing problem&lt;br/&gt;
Project: fs/lustre-release&lt;br/&gt;
Branch: master&lt;br/&gt;
Current Patch Set: 1&lt;br/&gt;
Commit: 0ebfd4c44c427628fd4928328582ad329c347c84&lt;/p&gt;</comment>
                            <comment id="135335" author="adilger" created="Sat, 5 Dec 2015 19:22:13 +0000"  >&lt;p&gt;Can you please check if &lt;a href=&quot;http://review.whamcloud.com/15870&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;http://review.whamcloud.com/15870&lt;/a&gt; will also resolve this problem?&lt;/p&gt;</comment>
                            <comment id="140322" author="hongchao.zhang" created="Thu, 28 Jan 2016 09:41:09 +0000"  >&lt;p&gt;the patch &lt;a href=&quot;http://review.whamcloud.com/15870&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;http://review.whamcloud.com/15870&lt;/a&gt; in &lt;a href=&quot;https://jira.whamcloud.com/browse/LU-6992&quot; title=&quot;recovery-random-scale test_fail_client_mds: test_fail_client_mds returned 254&quot; class=&quot;issue-link&quot; data-issue-key=&quot;LU-6992&quot;&gt;&lt;del&gt;LU-6992&lt;/del&gt;&lt;/a&gt; can&apos;t resolve this problem, and I have refreshed the patch.&lt;/p&gt;</comment>
                            <comment id="159571" author="hongchao.zhang" created="Fri, 22 Jul 2016 10:32:40 +0000"  >&lt;p&gt;&lt;a href=&quot;http://review.whamcloud.com/15906&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;http://review.whamcloud.com/15906&lt;/a&gt; has been updated&lt;/p&gt;</comment>
                            <comment id="195942" author="gerrit" created="Tue, 16 May 2017 05:45:06 +0000"  >&lt;p&gt;Oleg Drokin (oleg.drokin@intel.com) merged in patch &lt;a href=&quot;https://review.whamcloud.com/15906/&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://review.whamcloud.com/15906/&lt;/a&gt;&lt;br/&gt;
Subject: &lt;a href=&quot;https://jira.whamcloud.com/browse/LU-6952&quot; title=&quot;Mount options parsing problem&quot; class=&quot;issue-link&quot; data-issue-key=&quot;LU-6952&quot;&gt;&lt;del&gt;LU-6952&lt;/del&gt;&lt;/a&gt; mount: Mount options parsing problem&lt;br/&gt;
Project: fs/lustre-release&lt;br/&gt;
Branch: master&lt;br/&gt;
Current Patch Set: &lt;br/&gt;
Commit: b27652cb440f2bea59db254e955403484c6c1d3a&lt;/p&gt;</comment>
                            <comment id="195976" author="pjones" created="Tue, 16 May 2017 12:53:02 +0000"  >&lt;p&gt;Landed for 2.10&lt;/p&gt;</comment>
                    </comments>
                <issuelinks>
                            <issuelinktype id="10010">
                    <name>Duplicate</name>
                                                                <inwardlinks description="is duplicated by">
                                                        </inwardlinks>
                                    </issuelinktype>
                            <issuelinktype id="10011">
                    <name>Related</name>
                                            <outwardlinks description="is related to ">
                                        <issuelink>
            <issuekey id="30417">LU-6662</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|hzxjq7:</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>