exportfs

From RaySoft

The exportfs command is used to maintain the current table of exported file systems for NFS. This list is kept in a separate file named /var/lib/nfs/xtab which is read by mountd when a remote host requests access to mount a file tree, and parts of the list which are active are kept in the kernel's export table.[1]

Documentation

Syntax

exportfs [PARAMETER ...] [HOST:/PATH]

Parameters

-a
Export or unexport all directories.
-f
In new mode, flush everything out of the kernels export table. Any clients that are active will get new entries added by mountd when they make their next request.
-o PARAMETER,[...]
Specify a list of export PARAMETERs in the same manner as in exports.
-r
Reexport all directories. It synchronizes /var/lib/nfs/xtab with /etc/exports. It removes entries in /var/lib/nfs/xtab which are deleted from /etc/exports, and remove any entries from the kernel export table which are no longer valid.
-u
Unexport one or more directories.
-v
Be verbose. When exporting or unexporting, show what's going on. When displaying the current export list, also display the list of export options.

References

  1. man 8 'exportfs'