Subject: Re: Interface to change NFS exports
To: Julio M. Merino Vidal <jmmv84@gmail.com>
From: Manuel Bouyer <bouyer@antioche.eu.org>
List: tech-kern
Date: 09/12/2005 01:08:07
On Sun, Sep 11, 2005 at 01:20:58PM +0200, Julio M. Merino Vidal wrote:
> Hi everybody,
> 
> while adding NFS support to tmpfs, I found that the current way to
> change NFS export information is... how could I say it... very ugly.
> It seems to be a bandaid over what was used in the past to mount
> FFS systems, which makes it confusing and difficult to extend.
> (Don't we aim for clean design? ;-)
> 
> [...]
> 
>     ftp://ftp.NetBSD.org/pub/NetBSD/misc/jmmv/export.diff

Hi,
while you're at it, could you look at fixing a very long outstanding
problem ? A /etc/rc.d/mountd reload isn't atomic, there is a window
in which no filesystems are exported at all, and if a request comes in
at this time, nfsd replies with a "permission denied".

At first glance, we would need to keep 2 export list in kernel and switch
from one to the other, much like what IPF does with the filters.

I don't ask you implement this, but as you're planning to change the interface,
please think about it in the new one :)

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