diff options
author | Steve Dickson <steved@redhat.com> | 2007-11-03 09:14:57 -0400 |
---|---|---|
committer | Steve Dickson <steved@redhat.com> | 2007-11-03 09:14:57 -0400 |
commit | efbda485ff5b3d5916971e1af656d2c21307af30 (patch) | |
tree | c0677062283d8a632433b00c8da88518b4ebf4b5 | |
parent | b1e64b99a97b27d850d7a615b291aa9aeb2972ab (diff) | |
download | nfs-utils-efbda485ff5b3d5916971e1af656d2c21307af30.tar.gz nfs-utils-efbda485ff5b3d5916971e1af656d2c21307af30.tar.xz nfs-utils-efbda485ff5b3d5916971e1af656d2c21307af30.zip |
The wording in the exportfs man page can be a bit confusing, implying
that "exportfs -u :/foo" will unexport /foo from all hosts, which it won't.
This patch cleans that wording up and adds a couple examples on how to
unexport directories
Signed-off-by: Steinar H. Gunderson <sesse@debian.org>
Signed-off-by: Steve Dickson <steved@redhat.com>
-rw-r--r-- | utils/exportfs/exportfs.man | 21 |
1 files changed, 19 insertions, 2 deletions
diff --git a/utils/exportfs/exportfs.man b/utils/exportfs/exportfs.man index 2bd8e31..59789cc 100644 --- a/utils/exportfs/exportfs.man +++ b/utils/exportfs/exportfs.man @@ -167,11 +167,13 @@ all entries listed in are removed from the kernel export tables, and the file is cleared. This effectively shuts down all NFS activity. .P -To remove individual export entries, one can specify a +To remove an export to a host, specify a .I host:/path pair. This deletes the specified entry from .B xtab and removes the corresponding kernel entry (if any). +To remove one or more exports to several hosts, use +.BR "exportfs -ua" . .P .\" -------------------- Dumping the Export Table ----------------- .SS Dumping the Export Table @@ -186,7 +188,7 @@ option, the list of flags pertaining to each export are shown in addition. The following adds all directories listed in .B /etc/exports to -.B /var/lib/nfs/xtab +.B /var/lib/nfs/etab and pushes the resulting export entries into the kernel: .P .nf @@ -202,6 +204,21 @@ allowing asynchronous writes, one would do this: .nf .B "# exportfs -o async django:/usr/tmp .fi +.P +To unexport the +.B /usr/tmp +directory: +.P +.nf +.B "# exportfs -u django:/usr/tmp +.fi +.P +To unexport all the directories listed in +.B /etc/exports: +.P +.nf +.B "# exportfs -au +.fi .\" -------------------- DEPENDENCIES ----------------------------- .SH DEPENDENCIES Exporting to IP networks, DNS and NIS domains does not enable clients |