X-Git-Url: https://git.decadent.org.uk/gitweb/?a=blobdiff_plain;f=utils%2Fexportfs%2Fexportfs.man;h=59789cc43d930e12f55c46bc03d845a77ddd34f9;hb=efbda485ff5b3d5916971e1af656d2c21307af30;hp=7d18509e69b88c5d52e5385f524bb2540eec47ab;hpb=bce6f6871f481087890674497b4b2154dc4825fc;p=nfs-utils.git diff --git a/utils/exportfs/exportfs.man b/utils/exportfs/exportfs.man index 7d18509..59789cc 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 @@ -136,7 +138,7 @@ entries in (unless the .B -i option is given). -In addition, the administrator may overide any options from these sources +In addition, the administrator may override any options from these sources using the .B -o argument which takes a comma-separated list of options in the same fashion @@ -154,7 +156,7 @@ take place immediately after parsing the command line and updating the file. .P The default export options are -.BR sync,ro,root_squash,no_delay . +.BR sync,ro,root_squash,wdelay . .\" -------------------- Unexporting Directories ------------------ .SS Unexporting Directories The third synopsis shows how to unexported a currently exported directory. @@ -165,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 individial 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 @@ -182,7 +186,9 @@ option, the list of flags pertaining to each export are shown in addition. .\" -------------------- EXAMPLES --------------------------------- .SH EXAMPLES The following adds all directories listed in -.B /etc/exports to /var/lib/nfs/xtab +.B /etc/exports +to +.B /var/lib/nfs/etab and pushes the resulting export entries into the kernel: .P .nf @@ -198,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 @@ -212,7 +233,7 @@ across reboots. .P When unexporting a network or domain entry, any current exports to members of this group will be checked against the remaining valid exports and -if they themselves are nolonger valid they will be removed. +if they themselves are no longer valid they will be removed. .P .\" -------------------- SEE ALSO -------------------------------- .SH SEE ALSO