public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
From: Raj <obelix123@toughguy.net>
To: Linux Kernel <linux-kernel@vger.kernel.org>
Cc: okir@monad.swb.de
Subject: [TRIVIAL][PATCH]:/proc/fs/nfsd/
Date: Fri, 05 Mar 2004 14:39:09 +0530	[thread overview]
Message-ID: <404843B5.1010409@toughguy.net> (raw)

[-- Attachment #1: Type: text/plain, Size: 156 bytes --]

Hi,

Kernel Version: 2.6.3
Even if NFSD is not selected, the proc entry /proc/fs/nfsd is getting 
created.

The following patch fixes it.

Pls apply.

/Raj

[-- Attachment #2: nfsd-proc.patch --]
[-- Type: text/plain, Size: 575 bytes --]

--- linux-2.6.3/fs/proc/root.c	2004-02-19 09:52:32.000000000 +0530
+++ linux-2.6.3-fixed/fs/proc/root.c	2004-03-05 13:48:28.448516568 +0530
@@ -65,7 +65,11 @@ void __init proc_root_init(void)
 #endif
 	proc_root_fs = proc_mkdir("fs", 0);
 	proc_root_driver = proc_mkdir("driver", 0);
+
+#if defined(CONFIG_NFSD) || defined(CONFIG_NFSD_MODULE)
 	proc_mkdir("fs/nfsd", 0); /* somewhere for the nfsd filesystem to be mounted */
+#endif
+
 #if defined(CONFIG_SUN_OPENPROMFS) || defined(CONFIG_SUN_OPENPROMFS_MODULE)
 	/* just give it a mountpoint */
 	proc_mkdir("openprom", 0);

             reply	other threads:[~2004-03-05  9:07 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-03-05  9:09 Raj [this message]
2004-03-05 10:08 ` [TRIVIAL][PATCH]:/proc/fs/nfsd/ Neil Brown
2004-03-05 10:35   ` [TRIVIAL][PATCH]:/proc/fs/nfsd/ Raj
2004-03-13 17:26     ` [TRIVIAL][PATCH]:/proc/fs/nfsd/ Adrian Bunk
  -- strict thread matches above, loose matches on Subject: below --
2004-03-05  9:47 [TRIVIAL][PATCH]:/proc/fs/nfsd/ Petr Vandrovec
2004-03-05 11:28 ` [TRIVIAL][PATCH]:/proc/fs/nfsd/ Neil Brown

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=404843B5.1010409@toughguy.net \
    --to=obelix123@toughguy.net \
    --cc=linux-kernel@vger.kernel.org \
    --cc=okir@monad.swb.de \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox