From owner-freebsd-arch Tue Jan 23 14:59:21 2001 Delivered-To: freebsd-arch@freebsd.org Received: from fw.wintelcom.net (ns1.wintelcom.net [209.1.153.20]) by hub.freebsd.org (Postfix) with ESMTP id 0D5B237B6A0; Tue, 23 Jan 2001 14:59:03 -0800 (PST) Received: (from bright@localhost) by fw.wintelcom.net (8.10.0/8.10.0) id f0NMx2J14197; Tue, 23 Jan 2001 14:59:02 -0800 (PST) Date: Tue, 23 Jan 2001 14:59:02 -0800 From: Alfred Perlstein To: Adrian Chadd Cc: freebsd-arch@FreeBSD.ORG Subject: Re: mount options Message-ID: <20010123145902.F26076@fw.wintelcom.net> References: <20010123130628.A77423@hub.freebsd.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5i In-Reply-To: <20010123130628.A77423@hub.freebsd.org>; from adrian@FreeBSD.ORG on Tue, Jan 23, 2001 at 01:06:28PM -0800 Sender: owner-freebsd-arch@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG * Adrian Chadd [010123 13:06] wrote: > > Hi, > > I'd like to spark a discussion on the mount interface. It seems > a little evil right now, and I have noted that you can't add > arbitrary mount options through to an FS since they're passed > across as binary. > > For an FS porting project I'm doing, the mount interface needs > to be able to export the mount options back out to userspace, > and I'd like to tidy the code up instead of just fudge it for > my needs. > > So, if you have an idea on how the mount interface *should* look, > now is the time to stand up and tell me what you're thinking.. :-) I haven't thought about it much except how bad the interface is. Just some random thoughts on it. :) I would think that simply using a string passing method given some helper functions should be enough. There's really no effeciency problem as I can see because this wouldn't restrict the VFS from caching the information in a flags structure. At the same time it could allow for extracting some form of the mount options in the form of strings, perhaps a list of NULL terminated strings as a large block (sysctl or fetch syscall could specify the block length)? I also think that passing in each option shouldn't depend on formatting characters for seperation such as ',', instead it should be a list of null terminated strings and a length of the block. Some conventions might be in order, but the current async/noasync atime/noatime stuff seems to work pretty well. -- -Alfred Perlstein - [bright@wintelcom.net|alfred@freebsd.org] "I have the heart of a child; I keep it in a jar on my desk." To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-arch" in the body of the message