Pegasus InfoCorp: Web site design and web software development company

exportfs (8)

maintain list of NFS exported file systems

SYNOPSIS

    /usr/sbin/exportfs [-avi] [-o options,.. ] [ client:/path ..] /usr/sbin/exportfs -r [-v] /usr/sbin/exportfs [-av] -u [ client:/path ..] /usr/sbin/exportfs [-v]

DESCRIPTION

    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. Normally this xtab file is initialized with the list of all file systems named in /etc/exports by invoking exportfs -a . However, administrators can choose to add and delete individual file systems without modifying /etc/exports using exportfs . Any export requests which identify a specific host (rather than a subnet or netgroup etc) are entered directly into the kernel's export table as well as being written to /var/lib/nfs/xtab . Further, any mount points listed in /var/lib/nfs/rmtab which match a non host-specific export request will cause an appropriate export entry for the host given in rmtab to be entered into the kernel's export table.

OPTIONS

    -a

      Export or unexport all directories.

    -o options,...

      Specify a list of export options in the same manner as in exports(5) .

    -i

      Ignore the /etc/exports file, so that only default options and options given on the command line are used.

    -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.

DISCUSSION