From owner-freebsd-hackers Mon Jun 28 1:50: 2 1999 Delivered-To: freebsd-hackers@freebsd.org Received: from herring.nlsystems.com (nlsys.demon.co.uk [158.152.125.33]) by hub.freebsd.org (Postfix) with ESMTP id C62A01511F for ; Mon, 28 Jun 1999 01:49:55 -0700 (PDT) (envelope-from dfr@nlsystems.com) Received: from localhost (dfr@localhost) by herring.nlsystems.com (8.9.3/8.8.8) with ESMTP id JAA78466; Mon, 28 Jun 1999 09:52:43 +0100 (BST) (envelope-from dfr@nlsystems.com) Date: Mon, 28 Jun 1999 09:52:35 +0100 (BST) From: Doug Rabson To: Alexander Viro Cc: Bill Sommerfeld , Francois-Rene Rideau , Linux Kernel , FreeBSD Hackers , NetBSD Kernel Subject: Re: Improving the Unix API In-Reply-To: Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG On Sun, 27 Jun 1999, Alexander Viro wrote: > > > On Mon, 28 Jun 1999, Doug Rabson wrote: > > I'm talking about the concept of a header file containing something like: > > > > #define FL_VFS 0 > > #define FL_FOOFS 1 > > #define FD_BARFS 2 > > ... > > > > not being scalable. > > > > Do you have a complete list of filesystem types? Are you prepared to act > > as an Assigned Number authority for that list. For this kind of problem, > > strings are a damn sight easier to manage in the long term. > > Augh... It's ugly, indeed, but... sysctl() is not much nicer and all > systems in question manage to deal with it somehow. OTOH doing it as > strings... Hell knows. I'll look at it. Considering that HFS folks > had already asked for more than one value here (creator and type?) it may > be reasonable. I'm afraid that doing that may open the hell gates ;-/ > 'N' in *ANA can be 'namespace' as well as 'number'... Its a tough one alright. Some of my friends at Microsoft would suggest using UUIDs for this job. They might be clumsy but at least they are never going to collide and they are easy to generate. As far as sysctl goes, FreeBSD deprecates the use of numbers for OIDs and has a string-based mechanism for exploring the sysctl tree. > > [1] > BTW, how does NetBSD deal with HFS forks? > > > [1] cue current flamew^Wthreads on l-k regarding files-as-directories > hell. :-) -- Doug Rabson Mail: dfr@nlsystems.com Nonlinear Systems Ltd. Phone: +44 181 442 9037 To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message