Missing context in handbook

Randy Sofia rsofia at poly.edu
Mon Nov 9 16:41:56 UTC 2009


http://www.freebsd.org/doc/en/books/handbook/network-nfs.html

The handbook specifies "The -alldirs flag allows the subdirectories to 
be mount points. In other words, it will not mount the subdirectories 
but permit the client to mount only the directories that are required or 
needed."

While this is true, it is not noted in the handbook that it will also 
allow directories BELOW that directory to be mountable so long as it is 
part of the same file system.  As stated in the man pages:

 "the -alldirs flag; this form allows the host(s) to
     mount at any point within the file system, including regular files 
if the
     -r option is used on mountd(8)."


So for example if my /etc/exports looks like:
/home/randy  -alldirs  10.0.0.2 10.0.0.3 10.0.0.4


Not only will I be able to mount  /home/randy/Desktop   but I will also 
be able to mount /home/boris as well (if /home/randy and /home/boris are 
on the same file system).

--randy



More information about the freebsd-doc mailing list