CFT: nfse compatible mode with mountd (NFS exports file)

Andrey Simonenko simon at comsys.ntu-kpi.kiev.ua
Fri May 7 14:06:48 UTC 2010


Hello,

NFSE is a new NFS exports support for FreeBSD 9.0-CURRENT and 8.0-STABLE.
NFSE distribution consists of changes for the regular and experimental NFS
servers and the nfse utility.

The nfse utility uses new NFS exports file format that looks like exports(5),
but has different semantics of export entities.  Also nfse has the compatible
mode with mountd that allows to continue to use existent configurations for
NFS exports.

I made tests on my NFS exports configurations to verify correctness of
the compatible mode with mountd, but want to ask other administrators
to check nfse with their exports(5) files.  Only compilation of the
userland program is required, even if you run nfse with wrong options
under root privileges it will not modify any NFS exports settings in
the kernel, since it uses a new API.

How to check:

1. FreeBSD 8.0 or 9.0 is required.

2. Download new version of NFSE updates from http://nfse.sourceforge.net/

3. Build nfse using the TESTING-BUILD script (result in usr.sbin/nfse/).

4. Run "nfse -Ct /etc/exports" and compare output with your exports(5)
   file and your understanding of your NFS exports settings (nfse program
   should be run on the NFS server, it should see mount points).

5. Send me results of testing with comments if possible (here or in
   a private message).

Example (/home is a mount point of some file system):

% cat exports
/home/simon 1.2.3.4
% ./nfse -Ct exports
configure: reading file exports
configure: converting configuration to native format

Pathname /home
    Export specifications:
        -rw -sec sys -maproot=-2:-2 -host 1.2.3.4
    Subdirectories for NFSv2/3:
        /home/simon
            -host 1.2.3.4

Warning: subdirectories exports are insecure
%

Since NFS server exports file systems, then here there is one export of
file system /home and one administrative subdirectory export from this
file system for NFSv2/3 clients.


More information about the freebsd-fs mailing list