<!-- 
RSS generated by JIRA (9.4.14#940014-sha1:734e6822bbf0d45eff9af51f82432957f73aa32c) at Sat Feb 10 02:05:02 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-6990] write error: Invalid argument when trying to set nosquash_nids</title>
                <link>https://jira.whamcloud.com/browse/LU-6990</link>
                <project id="10000" key="LU">Lustre</project>
                    <description>&lt;p&gt;Since our update from 2.5.3 to 2.5.3.90, we can&apos;t set the nosquash_nids parameter by writing into the procfile /proc/fs/lustre/mdt/scratch-MDT0000/nosquash_nids.&lt;/p&gt;

&lt;p&gt;This is the method used by the shine tool for setting all the parameters.&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;[root@mds2 ~]# echo &lt;span class=&quot;code-quote&quot;&gt;&quot;192.168.101.13@tcp&quot;&lt;/span&gt; &amp;gt; /proc/fs/lustre/mdt/scratch-MDT0000/nosquash_nids
-bash: echo: write error: Invalid argument
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;

&lt;p&gt;However, it works with &apos;lctl set_param&apos; or &apos;echo -n&apos;.&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;[root@mds2 ~]# echo -n &lt;span class=&quot;code-quote&quot;&gt;&quot;192.168.101.13@tcp&quot;&lt;/span&gt; &amp;gt; /proc/fs/lustre/mdt/scratch-MDT0000/nosquash_nids
[root@mds2 ~]# cat /proc/fs/lustre/mdt/scratch-MDT0000/nosquash_nids
192.168.101.13@tcp
[root@mds2 ~]# lctl set_param mdt.scratch-MDT0000.nosquash_nids=192.168.0.13@tcp
mdt.scratch-MDT0000.nosquash_nids=192.168.0.13@tcp
[root@mds2 ~]# cat /proc/fs/lustre/mdt/scratch-MDT0000/nosquash_nids
192.168.0.13@tcp
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;

&lt;p&gt;It is related to &lt;a href=&quot;https://jira.whamcloud.com/browse/LU-1778&quot; title=&quot;Root Squash is not always properly enforced&quot; class=&quot;issue-link&quot; data-issue-key=&quot;LU-1778&quot;&gt;&lt;del&gt;LU-1778&lt;/del&gt;&lt;/a&gt;. The bug is in &lt;tt&gt;lprocfs_wr_nosquash_nids()&lt;/tt&gt;. See &lt;tt&gt;lustre/obdclass/lprocfs_status.c&lt;/tt&gt; (b2_5 branch, commit d82b4f54):&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;2789     &lt;span class=&quot;code-keyword&quot;&gt;if&lt;/span&gt; (count &amp;gt; 0 &amp;amp;&amp;amp; kernbuf[count - 1] == &lt;span class=&quot;code-quote&quot;&gt;&apos;\n&apos;&lt;/span&gt;)
2790         kernbuf[count - 1] = &lt;span class=&quot;code-quote&quot;&gt;&apos;\0&apos;&lt;/span&gt;;
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;

&lt;p&gt;I don&apos;t understand why we need to replace \n by \0 since the nid parser seems to handle the newline.&lt;/p&gt;

&lt;p&gt;Please let me know if you need further details.&lt;/p&gt;</description>
                <environment>Lustre 2.5.3.90</environment>
        <key id="31445">LU-6990</key>
            <summary>write error: Invalid argument when trying to set nosquash_nids</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="emoly.liu">Emoly Liu</assignee>
                                    <reporter username="bruno.travouillon">Bruno Travouillon</reporter>
                        <labels>
                    </labels>
                <created>Wed, 12 Aug 2015 14:28:54 +0000</created>
                <updated>Sat, 16 Jan 2016 06:09:29 +0000</updated>
                            <resolved>Wed, 26 Aug 2015 17:49:55 +0000</resolved>
                                    <version>Lustre 2.5.4</version>
                                    <fixVersion>Lustre 2.8.0</fixVersion>
                                        <due></due>
                            <votes>0</votes>
                                    <watches>7</watches>
                                                                            <comments>
                            <comment id="123980" author="pjones" created="Wed, 12 Aug 2015 18:32:05 +0000"  >&lt;p&gt;Emoly&lt;/p&gt;

&lt;p&gt;Could you please assist with this one?&lt;/p&gt;

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

&lt;p&gt;Peter&lt;/p&gt;</comment>
                            <comment id="124130" author="emoly.liu" created="Fri, 14 Aug 2015 08:06:54 +0000"  >&lt;p&gt;Bruno, I think I know why that patch added &quot;kernbuf&lt;span class=&quot;error&quot;&gt;&amp;#91;count - 1&amp;#93;&lt;/span&gt; = &apos;\0&apos;;&quot;.&lt;br/&gt;
If you try to echo &quot;NONE&quot; to &quot;clear&quot; to parameter nosquash_nids against branch 2.5.3, you will see &quot;write error: Invalid argument&quot;. Instead, that works well in 2.5.3.90.&lt;/p&gt;

&lt;p&gt;I will post a patch to fix it.&lt;/p&gt;
</comment>
                            <comment id="124133" author="gerrit" created="Fri, 14 Aug 2015 09:48:09 +0000"  >&lt;p&gt;Emoly Liu (emoly.liu@intel.com) uploaded a new patch: &lt;a href=&quot;http://review.whamcloud.com/15985&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;http://review.whamcloud.com/15985&lt;/a&gt;&lt;br/&gt;
Subject: &lt;a href=&quot;https://jira.whamcloud.com/browse/LU-6990&quot; title=&quot;write error: Invalid argument when trying to set nosquash_nids&quot; class=&quot;issue-link&quot; data-issue-key=&quot;LU-6990&quot;&gt;&lt;del&gt;LU-6990&lt;/del&gt;&lt;/a&gt; lproc: set parameter nosquash_nids correctly&lt;br/&gt;
Project: fs/lustre-release&lt;br/&gt;
Branch: master&lt;br/&gt;
Current Patch Set: 1&lt;br/&gt;
Commit: 7d7d1e640e3b7576e88d4507e72e815ed0140981&lt;/p&gt;</comment>
                            <comment id="124681" author="gerrit" created="Thu, 20 Aug 2015 08:36:59 +0000"  >&lt;p&gt;Gr&#233;goire Pichon (gregoire.pichon@bull.net) uploaded a new patch: &lt;a href=&quot;http://review.whamcloud.com/16034&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;http://review.whamcloud.com/16034&lt;/a&gt;&lt;br/&gt;
Subject: &lt;a href=&quot;https://jira.whamcloud.com/browse/LU-6990&quot; title=&quot;write error: Invalid argument when trying to set nosquash_nids&quot; class=&quot;issue-link&quot; data-issue-key=&quot;LU-6990&quot;&gt;&lt;del&gt;LU-6990&lt;/del&gt;&lt;/a&gt; lproc: set parameter nosquash_nids correctly&lt;br/&gt;
Project: fs/lustre-release&lt;br/&gt;
Branch: b2_5&lt;br/&gt;
Current Patch Set: 1&lt;br/&gt;
Commit: 84965970e51ad5b3c14d9abad3789192585be9bc&lt;/p&gt;</comment>
                            <comment id="125204" author="gerrit" created="Wed, 26 Aug 2015 15:52:33 +0000"  >&lt;p&gt;Oleg Drokin (oleg.drokin@intel.com) merged in patch &lt;a href=&quot;http://review.whamcloud.com/15985/&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;http://review.whamcloud.com/15985/&lt;/a&gt;&lt;br/&gt;
Subject: &lt;a href=&quot;https://jira.whamcloud.com/browse/LU-6990&quot; title=&quot;write error: Invalid argument when trying to set nosquash_nids&quot; class=&quot;issue-link&quot; data-issue-key=&quot;LU-6990&quot;&gt;&lt;del&gt;LU-6990&lt;/del&gt;&lt;/a&gt; lproc: set parameter nosquash_nids correctly&lt;br/&gt;
Project: fs/lustre-release&lt;br/&gt;
Branch: master&lt;br/&gt;
Current Patch Set: &lt;br/&gt;
Commit: 62d3b85f7d82bf7c76a84326a22b3139678f9d97&lt;/p&gt;</comment>
                            <comment id="125235" author="jgmitter" created="Wed, 26 Aug 2015 17:49:55 +0000"  >&lt;p&gt;Landed for 2.8.&lt;/p&gt;</comment>
                    </comments>
                <issuelinks>
                            <issuelinktype id="10011">
                    <name>Related</name>
                                            <outwardlinks description="is related to ">
                                        <issuelink>
            <issuekey id="15565">LU-1778</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|hzxkav:</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>