From owner-freebsd-arch@FreeBSD.ORG Mon Oct 10 09:02:01 2005 Return-Path: X-Original-To: freebsd-arch@freebsd.org Delivered-To: freebsd-arch@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 21A0616A41F; Mon, 10 Oct 2005 09:02:01 +0000 (GMT) (envelope-from dfr@nlsystems.com) Received: from itchy.rabson.org (mailgate.nlsystems.com [80.177.232.242]) by mx1.FreeBSD.org (Postfix) with ESMTP id 83D5843D46; Mon, 10 Oct 2005 09:01:59 +0000 (GMT) (envelope-from dfr@nlsystems.com) Received: from herring.rabson.org (herring [10.0.0.2]) by itchy.rabson.org (8.13.3/8.13.3) with ESMTP id j9A91dZP026911; Mon, 10 Oct 2005 10:01:39 +0100 (BST) (envelope-from dfr@nlsystems.com) From: Doug Rabson To: freebsd-arch@freebsd.org Date: Mon, 10 Oct 2005 10:01:37 +0100 User-Agent: KMail/1.8.2 References: <20051008024620.GA29824@crodrigues.org> <20051009131253.GB7463@garage.freebsd.pl> <20051009150459.GA6810@crodrigues.org> In-Reply-To: <20051009150459.GA6810@crodrigues.org> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200510101001.38294.dfr@nlsystems.com> X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-1.6 (itchy.rabson.org [80.177.232.242]); Mon, 10 Oct 2005 10:01:40 +0100 (BST) X-Spam-Status: No, score=-2.8 required=5.0 tests=ALL_TRUSTED autolearn=failed version=3.0.2 X-Spam-Checker-Version: SpamAssassin 3.0.2 (2004-11-16) on itchy.rabson.org X-Virus-Scanned: ClamAV 0.83/1124/Sun Oct 9 18:58:08 2005 on itchy.rabson.org X-Virus-Status: Clean Cc: Craig Rodrigues , pjd@freebsd.org Subject: Re: [RFC] Teaching mount(8) to use nmount() X-BeenThere: freebsd-arch@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Discussion related to FreeBSD architecture List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 10 Oct 2005 09:02:01 -0000 On Sunday 09 October 2005 16:04, Craig Rodrigues wrote: > On Sun, Oct 09, 2005 at 03:12:53PM +0200, Pawel Jakub Dawidek wrote: > > Can't we just check if there is an external binary in > > _PATH_SYSPATH? It'll be easier to add new file system then (there > > will be no need to change this function). > > We could do that. I had some thoughts on this: > -> In the future, we want to make it difficult for people to add new > external mount programs and force them to put the majority > of their argument parsing inside the FS, so that it works > nicely with nmount() and mount -t. > Only in exceptional circumstances should we have an external > mount program that works with mount -t....NFS and SMBFS are two > special cases I could think of, and in these special cases > (and new special cases), we could modify mount(8). The mount program isn't always just doing argument parsing. For instance, the Darwin webdav filesystem puts all the HTTP protocol code in the mount program and uses IPC from the kernel to make i/o requests etc. as needed. I'm sure there must be other examples but the only one I can think of right now is the ancient broken kerberos auth code in NFS.