<!-- 
RSS generated by JIRA (9.4.14#940014-sha1:734e6822bbf0d45eff9af51f82432957f73aa32c) at Sat Feb 10 03:05:13 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-13907] /proc/filesystem doesn&apos;t list lustre as nodev</title>
                <link>https://jira.whamcloud.com/browse/LU-13907</link>
                <project id="10000" key="LU">Lustre</project>
                    <description>&lt;p&gt;On a client when you load lustre module /proc/filesystem doesn&apos;t show lustre as nodev. How can we set the nodev option in /proc/filesystem. &lt;/p&gt;

&lt;p&gt;We can mount the filesystem using nodev. Like this.&lt;br/&gt;
mount -t lustre -o flock,nodev,nosuid,noauto servernid@o2ib:/fs1 /fs1&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;
# cat /proc/filesystems  | grep lustre
	lustre
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&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;
bash-4.3# modinfo lustre
filename:       /lib/modules/4.12.14-122.23.1.20200609-nasa/updates/lustre-client/fs/lustre.ko
license:        GPL
version:        2.12.5
description:    Lustre Client File &lt;span class=&quot;code-object&quot;&gt;System&lt;/span&gt;
author:         OpenSFS, Inc. &amp;lt;http:&lt;span class=&quot;code-comment&quot;&gt;//www.lustre.org/&amp;gt;
&lt;/span&gt;suserelease:    SLE12-SP5
srcversion:     39FF3FF008B210E74B8D7D7
depends:        obdclass,ptlrpc,libcfs,lnet,lmv,mdc,lov
retpoline:      Y
vermagic:       4.12.14-122.23.1.20200609-nasa SMP mod_unload modversions 
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;</description>
                <environment></environment>
        <key id="60398">LU-13907</key>
            <summary>/proc/filesystem doesn&apos;t list lustre as nodev</summary>
                <type id="9" iconUrl="https://jira.whamcloud.com/images/icons/issuetypes/undefined.png">Question/Request</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="adilger">Andreas Dilger</assignee>
                                    <reporter username="mhanafi">Mahmoud Hanafi</reporter>
                        <labels>
                    </labels>
                <created>Wed, 12 Aug 2020 23:24:37 +0000</created>
                <updated>Sun, 20 Sep 2020 01:08:12 +0000</updated>
                            <resolved>Sun, 20 Sep 2020 01:08:02 +0000</resolved>
                                    <version>Lustre 2.12.5</version>
                                    <fixVersion>Lustre 2.12.6</fixVersion>
                                        <due></due>
                            <votes>0</votes>
                                    <watches>7</watches>
                                                                            <comments>
                            <comment id="277395" author="simmonsja" created="Thu, 13 Aug 2020 00:04:24 +0000"  >&lt;p&gt;This was fixed in &lt;a href=&quot;https://jira.whamcloud.com/browse/LU-2&quot; title=&quot;add --disable-mptlinux option to lbuild&quot; class=&quot;issue-link&quot; data-issue-key=&quot;LU-2&quot;&gt;&lt;del&gt;LU-2&lt;/del&gt;&lt;/a&gt;.13.50 with commit&#160;421d18c25b3143e9f2cabc1c0913475c03f739a4 (&lt;a href=&quot;https://jira.whamcloud.com/browse/LU-12514&quot; title=&quot;separate out the lustre mount code for server and clients&quot; class=&quot;issue-link&quot; data-issue-key=&quot;LU-12514&quot;&gt;LU-12514&lt;/a&gt;&#160;obdclass: discard FS_REQUIRES_DEV flag.). Its a bit tricky to fix since the same mount code is used for both the client (nodev) and the server targets (bdev). So we have to separate out the target and client mounting code first. This all has been done with the latest lustre code.&#160;&lt;/p&gt;</comment>
                            <comment id="277471" author="adilger" created="Thu, 13 Aug 2020 15:25:10 +0000"  >&lt;p&gt;Hi Mahmoud, is there a particular reason that it is important that the client is mounted with the &quot;&lt;tt&gt;nodev&lt;/tt&gt;&quot; label?&lt;/p&gt;</comment>
                            <comment id="277473" author="adilger" created="Thu, 13 Aug 2020 15:32:52 +0000"  >&lt;p&gt;It would be possible to implement a few-line fix for client-only builds by only including the &lt;tt&gt;FS_REQUIRES_DEV&lt;/tt&gt; flag if &lt;tt&gt;HAVE_SERVER_SUPPORT&lt;/tt&gt; is defined.   While not as complete a fix as in master, this is sufficient for client-only builds, since the server would not be using those modules for its own mounts.&lt;/p&gt;

&lt;p&gt;Something like the following (completely untested) patch would hopefully work:&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/obdclass/obd_mount.c b/lustre/obdclass/obd_mount.c
index 73644e127d..d9bf708d54 100644
--- a/lustre/obdclass/obd_mount.c
+++ b/lustre/obdclass/obd_mount.c
@@ -1678,7 +1678,12 @@ &lt;span class=&quot;code-keyword&quot;&gt;static&lt;/span&gt; struct file_system_type lustre_fs_type = {
         .get_sb       = lustre_get_sb,
 #endif
         .kill_sb      = lustre_kill_super,
-        .fs_flags     = FS_REQUIRES_DEV | FS_HAS_FIEMAP | FS_RENAME_DOES_D_MOVE,
+       .fs_flags     = FS_HAS_FIEMAP | FS_RENAME_DOES_D_MOVE |
+#ifdef HAVE_SERVER_SUPPORT
+                        FS_REQUIRES_DEV,
+#&lt;span class=&quot;code-keyword&quot;&gt;else&lt;/span&gt;
+                        0,
+#endif
 };
 MODULE_ALIAS_FS(&lt;span class=&quot;code-quote&quot;&gt;&quot;lustre&quot;&lt;/span&gt;);
 
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;</comment>
                            <comment id="277482" author="dtalcott" created="Thu, 13 Aug 2020 17:30:54 +0000"  >&lt;p&gt;We run a security tool (BigFix) that scans all file systems except those marked as &apos;nodev&apos; in /proc/filesystems. Of the network file systems we use, Lustre is the only one not marked with &apos;nodev&apos;.&lt;/p&gt;</comment>
                            <comment id="277491" author="gerrit" created="Thu, 13 Aug 2020 22:26:16 +0000"  >&lt;p&gt;Andreas Dilger (adilger@whamcloud.com) uploaded a new patch: &lt;a href=&quot;https://review.whamcloud.com/39674&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://review.whamcloud.com/39674&lt;/a&gt;&lt;br/&gt;
Subject: &lt;a href=&quot;https://jira.whamcloud.com/browse/LU-13907&quot; title=&quot;/proc/filesystem doesn&amp;#39;t list lustre as nodev&quot; class=&quot;issue-link&quot; data-issue-key=&quot;LU-13907&quot;&gt;&lt;del&gt;LU-13907&lt;/del&gt;&lt;/a&gt; llite: don&apos;t set FS_REQUIRES_DEV on client&lt;br/&gt;
Project: fs/lustre-release&lt;br/&gt;
Branch: b2_12&lt;br/&gt;
Current Patch Set: 1&lt;br/&gt;
Commit: 00124e8c6989bcb6caf70e1cfed4db937ee2187e&lt;/p&gt;</comment>
                            <comment id="277492" author="adilger" created="Thu, 13 Aug 2020 22:30:39 +0000"  >&lt;p&gt;This patch has not been tested yet, but if your need is urgent you are welcome to test it on an unimportant client node.  IMHO, the risk of the change is very low.&lt;/p&gt;</comment>
                            <comment id="277542" author="dtalcott" created="Fri, 14 Aug 2020 22:51:35 +0000"  >&lt;p&gt;Jay built us a client Lustre with the patch. We installed it on one system and all seems okay so far. Plus, lustre is marked &quot;nodev&quot; in /proc/filesystems, as desired.&lt;/p&gt;</comment>
                            <comment id="277552" author="pjones" created="Sat, 15 Aug 2020 12:22:50 +0000"  >&lt;p&gt;Thanks for the update Dale - that is good news!&lt;/p&gt;</comment>
                            <comment id="280076" author="gerrit" created="Sat, 19 Sep 2020 18:13:03 +0000"  >&lt;p&gt;Oleg Drokin (green@whamcloud.com) merged in patch &lt;a href=&quot;https://review.whamcloud.com/39674/&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://review.whamcloud.com/39674/&lt;/a&gt;&lt;br/&gt;
Subject: &lt;a href=&quot;https://jira.whamcloud.com/browse/LU-13907&quot; title=&quot;/proc/filesystem doesn&amp;#39;t list lustre as nodev&quot; class=&quot;issue-link&quot; data-issue-key=&quot;LU-13907&quot;&gt;&lt;del&gt;LU-13907&lt;/del&gt;&lt;/a&gt; llite: don&apos;t set FS_REQUIRES_DEV on client&lt;br/&gt;
Project: fs/lustre-release&lt;br/&gt;
Branch: b2_12&lt;br/&gt;
Current Patch Set: &lt;br/&gt;
Commit: 76531b74d1280b93b6aa105e960819d806cc44f1&lt;/p&gt;</comment>
                            <comment id="280084" author="pjones" created="Sun, 20 Sep 2020 01:08:02 +0000"  >&lt;p&gt;Landed for 2.12.6 and fixed as part of a larger change on master&lt;/p&gt;</comment>
                    </comments>
                <issuelinks>
                            <issuelinktype id="10011">
                    <name>Related</name>
                                            <outwardlinks description="is related to ">
                                        <issuelink>
            <issuekey id="56282">LU-12514</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|i017tj:</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>
                                                                                                                                                                                                                                                                                                                                                                                                                </customfields>
    </item>
</channel>
</rss>