Subject: Re: NFS /etc/exports, and -alldirs
To: Richard Rauch <rkr@olib.org>
From: Manuel Bouyer <bouyer@antioche.eu.org>
List: netbsd-help
Date: 04/17/2003 20:51:34
On Thu, Apr 17, 2003 at 05:22:01AM -0500, Richard Rauch wrote:
> hermes: NetBSD/i386, 1.6 with vanilla sources & custom kernel config.
> 
> 
> I have been fiddling with NFS again, in my long slow arc of setting
> up my home network.  (NFS is not been a high priority, but it's
> close to the top again.)
> 
> 
> My first question is fairly brief: Is -alldirs actually disabled?
> 
> I know that it is discouraged, and I don't intend on using it for
> long, but for a short period it looked beneficial.  The docs claim
> that it is supported, mountd parses it, and yet I can't get it to
> work.  When I try, e.g.,
> 
> /usr/home -maproot=nobody:nogroup -network 192.168.0/16
> 
> ... mountd gives:
> 
> Apr 17 04:09:09 hermes mountd[142]: "/usr/home -alldirs -maproot", line 4: Could not remount /usr/home: Invalid argument
> 
> 
> What particularly confuses me is the "remount" reference.  While
> /usr is mounted on hermes, this is the *local* /usr/home of hermes.
> (The one that I'm trying to export!)  Why does "-alldirs" try to
> unmount/remount?  If it's not trying to remount the local directory
> for export, then I have no idea why the /etc/exports -alldirs option
> is causing mountd to complain about "remounting".

The NFS export is done though the mount system call, which explain the
'remount' here.
You can't export --alldirs a subdirectory of a filesystem.

-- 
Manuel Bouyer <bouyer@antioche.eu.org>
     NetBSD: 24 ans d'experience feront toujours la difference
--