From owner-freebsd-arch Wed Feb 28 21:22: 9 2001 Delivered-To: freebsd-arch@freebsd.org Received: from syncopation-01.iinet.net.au (syncopation-01.iinet.net.au [203.59.24.37]) by hub.freebsd.org (Postfix) with SMTP id 3E7A937B71C for ; Wed, 28 Feb 2001 21:22:06 -0800 (PST) (envelope-from julian@elischer.org) Received: (qmail 7099 invoked by uid 666); 1 Mar 2001 05:33:06 -0000 Received: from i074-222.nv.iinet.net.au (HELO elischer.org) (203.59.74.222) by mail.m.iinet.net.au with SMTP; 1 Mar 2001 05:33:06 -0000 Message-ID: <3A9DDC76.3B749D83@elischer.org> Date: Wed, 28 Feb 2001 21:21:58 -0800 From: Julian Elischer X-Mailer: Mozilla 4.7 [en] (X11; U; FreeBSD 5.0-CURRENT i386) X-Accept-Language: en, hu MIME-Version: 1.0 To: "Long, Scott" Cc: "'freebsd-arch@freebsd.org'" Subject: Re: Arch question for a UDF FS driver References: Content-Type: text/plain; charset=iso-8859-15 Content-Transfer-Encoding: 7bit Sender: owner-freebsd-arch@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG "Long, Scott" wrote: I already have some UDF work. let's talk.. > > I've starting writing a UDF FS driver for FreeBSD, and am coming to a > decision point. UDF is somewhat similar to ufs in that a File Entry is > analogous to an inode, so I'd like to implement the filesystem using the > vget vfsop. Problem is that vget uses ino_t which is a uint32_t, while the > Unique Id (aka inode number) for UDF is a uint64_t. Unique Id's are > numbered sequentially starting at 16 (0 is the root dir, 1-15 are reserved), > and may be sparse. So what color should I paint the bikeshed? > > Pink: Just pretend the UniqueId is 32 bits. If it is ever more than 32 > bits, panic. Advantage: it's pretty hard to roll over 32 bits on a CD or > DVD. Disadvantage: it's a gross hack. > > Muave: Don't implemenet it with vget. Advantage: no need to worry about > the UniqueId. Disadvantage: harder to support some of the filesystem > features, like hardlinks, once write support is done. > > Orange: Get ino_t bumped up to a uint64_t and modify all the other > filesystems to deal with it accordingly. Advantage: no hackery needed for > UDF. Disadvantage: may be the mother of all bikesheds. > > I prefer orange. Thanks for the advice. > > Scott > > To Unsubscribe: send mail to majordomo@FreeBSD.org > with "unsubscribe freebsd-arch" in the body of the message -- __--_|\ Julian Elischer / \ julian@elischer.org ( OZ ) World tour 2000-2001 ---> X_.---._/ v To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-arch" in the body of the message