From owner-freebsd-current Tue Dec 18 9:55: 5 2001 Delivered-To: freebsd-current@freebsd.org Received: from salmon.maths.tcd.ie (salmon.maths.tcd.ie [134.226.81.11]) by hub.freebsd.org (Postfix) with SMTP id EDD1D37B417 for ; Tue, 18 Dec 2001 09:54:57 -0800 (PST) Received: from walton.maths.tcd.ie by salmon.maths.tcd.ie with SMTP id ; 18 Dec 2001 17:54:56 +0000 (GMT) To: Terry Lambert Cc: current@freebsd.org Subject: Re: mountd(8) leaving filesystems exported In-Reply-To: Your message of "Fri, 14 Dec 2001 22:17:43 PST." <3C1AEB07.5FE66AD7@mindspring.com> Date: Tue, 18 Dec 2001 17:54:55 +0000 From: Ian Dowse Message-ID: <200112181754.aa70789@salmon.maths.tcd.ie> Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG In message <3C1AEB07.5FE66AD7@mindspring.com>, Terry Lambert writes: >> One nasty bug is that the code for un-exporting filesystems checks >> to see if the filesystem is among a list of supported types, but >> the code for exporting doesn't. This list of supported filesystems >> does not include ext2fs or hpfs, so you can successfully export >> these filesystems, but they remain exported even when the /etc/exports >> entry is removed and mountd is restarted or sent a SIGHUP, and no >> errors are logged... > >This is actually the wrong way to go about this. I'll agree with this much anyway :-) Ignoring for now how the exports are managed in the kernel, it is really bad that mountd needs to know about individual filesystems in order to NFS export them. The export interface also does not allow the export list to be replaced atomically, so all of the exports fail briefly when mountd reloads them on receipt of a SIGHUP. There is apparently work ongoing to improving the mount(2) interface (I forget who is doing this). Hopefully this should make it much easier to arrange for mountd to change the export lists in a filesystem-independent manner, even if exports are still managed per-filesystem in the kernel. However for this bug (ext2fs and hpfs filesystems cannot be un-exported once they have been exported) I am just looking for a quick solution for now, but I have already put some thought into improving the mountd-kernel interface, which is something I really want to see fixed. Ian To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message