summaryrefslogtreecommitdiffstats
path: root/utils
diff options
context:
space:
mode:
authorneilbrown <neilbrown>2003-08-04 04:25:54 +0000
committerneilbrown <neilbrown>2003-08-04 04:25:54 +0000
commite09fbc8933961a0a774217ef32d73da373ddc670 (patch)
tree4549a0208515316164325485ebb3cb583cd989ce /utils
parent18fc7a86a2a1213762cc4107565903127efadafc (diff)
downloadnfs-utils-e09fbc8933961a0a774217ef32d73da373ddc670.tar.gz
nfs-utils-e09fbc8933961a0a774217ef32d73da373ddc670.tar.xz
nfs-utils-e09fbc8933961a0a774217ef32d73da373ddc670.zip
/proc/fs/nfsd as an alternate to /proc/fs/nfsd
Diffstat (limited to 'utils')
-rw-r--r--utils/exportfs/exportfs.c2
-rw-r--r--utils/exportfs/exportfs.man2
-rw-r--r--utils/exportfs/nfsd.man4
-rw-r--r--utils/mountd/cache.c7
4 files changed, 11 insertions, 4 deletions
diff --git a/utils/exportfs/exportfs.c b/utils/exportfs/exportfs.c
index cbb0aa9..6f2a60d 100644
--- a/utils/exportfs/exportfs.c
+++ b/utils/exportfs/exportfs.c
@@ -97,7 +97,7 @@ main(int argc, char **argv)
if (new_cache)
cache_flush(1);
else {
- fprintf(stderr, "exportfs: -f: only available with new cache controls: mount /proc/fs/nfs first\n");
+ fprintf(stderr, "exportfs: -f: only available with new cache controls: mount /proc/fs/nfsd first\n");
exit(1);
}
return 0;
diff --git a/utils/exportfs/exportfs.man b/utils/exportfs/exportfs.man
index 7d18509..9024caf 100644
--- a/utils/exportfs/exportfs.man
+++ b/utils/exportfs/exportfs.man
@@ -49,6 +49,8 @@ earlier versions of the Linux kernel, and a new mode which applies to
2.6 and later versions providing the
.B nfsd
virtual filesystem has been mounted at
+.B /proc/fs/nfsd
+or
.BR /proc/fs/nfs .
If this filesystem is not mounted in 2.6, the legacy mode is used.
.P
diff --git a/utils/exportfs/nfsd.man b/utils/exportfs/nfsd.man
index b4806b4..d475eb1 100644
--- a/utils/exportfs/nfsd.man
+++ b/utils/exportfs/nfsd.man
@@ -8,7 +8,7 @@
.SH NAME
nfsd \- special filesystem for controlling Linux NFS server
.SH SYNPOSIS
-.B "mount -t nfsd nfsd /proc/fs/nfs"
+.B "mount -t nfsd nfsd /proc/fs/nfsd"
.SH DESCRIPTION
The
.B nfsd
@@ -35,6 +35,8 @@ and
.I mountd
programs (part of the nfs-utils package) expect to find this
filesystem mounted at
+.B /proc/fs/nfsd
+or
.BR /proc/fs/nfs .
If it is not mounted, they will fall-back on 2.4 style functionality.
This involves accessing the NFS server via a systemcall. This
diff --git a/utils/mountd/cache.c b/utils/mountd/cache.c
index 2e35b17..96492b8 100644
--- a/utils/mountd/cache.c
+++ b/utils/mountd/cache.c
@@ -368,15 +368,18 @@ void cache_export(nfs_export *exp)
* {
* echo $domain $path $length
* read filehandle <&0
- * } <> /proc/fs/nfs/filehandle
+ * } <> /proc/fs/nfsd/filehandle
*/
struct nfs_fh_len *
cache_get_filehandle(nfs_export *exp, int len, char *p)
{
- FILE *f = fopen("/proc/fs/nfs/filehandle", "r+");
+ FILE *f = fopen("/proc/fs/nfsd/filehandle", "r+");
char buf[200];
char *bp = buf;
static struct nfs_fh_len fh;
+
+ if (!f)
+ f = fopen("/proc/fs/nfs/filehandle", "r+");
if (!f)
return NULL;