]> git.neil.brown.name Git - history.git/commitdiff
[PATCH] Create a mountpoint for the nfsd filesystem.
authorNeil Brown <neilb@cse.unsw.edu.au>
Tue, 5 Aug 2003 06:20:40 +0000 (23:20 -0700)
committerLinus Torvalds <torvalds@home.osdl.org>
Tue, 5 Aug 2003 06:20:40 +0000 (23:20 -0700)
Though the nfsd module can create this, having it always
there makes auto-loading-on-mount work better.

Note: it was previously recommended that the nfsd filesystem be mounted
on /proc/fs/nfs, which I was never comfortable with.
Henceforth the recommended location will be /proc/fs/nfsd.
nfs-utils 1.0.6 and later will support both.

fs/proc/root.c

index f338544e1687ee9ac1e202204c44b3d174ca7435..91e7384325c7b9d9370c763244eb9ae1d7ab476b 100644 (file)
@@ -65,6 +65,7 @@ void __init proc_root_init(void)
 #endif
        proc_root_fs = proc_mkdir("fs", 0);
        proc_root_driver = proc_mkdir("driver", 0);
+       proc_mkdir("fs/nfsd", 0); /* somewhere for the nfsd filesystem to be mounted */
 #if defined(CONFIG_SUN_OPENPROMFS) || defined(CONFIG_SUN_OPENPROMFS_MODULE)
        /* just give it a mountpoint */
        proc_mkdir("openprom", 0);