From owner-freebsd-arch Thu Mar 1 5:44:47 2001 Delivered-To: freebsd-arch@freebsd.org Received: from fledge.watson.org (fledge.watson.org [204.156.12.50]) by hub.freebsd.org (Postfix) with ESMTP id B388D37B718 for ; Thu, 1 Mar 2001 05:44:44 -0800 (PST) (envelope-from robert@fledge.watson.org) Received: from fledge.watson.org (robert@fledge.pr.watson.org [192.0.2.3]) by fledge.watson.org (8.11.1/8.11.1) with SMTP id f21DiUh65507; Thu, 1 Mar 2001 08:44:31 -0500 (EST) (envelope-from robert@fledge.watson.org) Date: Thu, 1 Mar 2001 08:44:30 -0500 (EST) From: Robert Watson Reply-To: Robert Watson To: Terry Lambert Cc: "Long, Scott" , "'Garrett Wollman'" , arch@FreeBSD.ORG Subject: Re: Arch question for a UDF FS driver In-Reply-To: <200103010510.WAA16907@usr05.primenet.com> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-arch@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG On Thu, 1 Mar 2001, Terry Lambert wrote: > > > Hash the Unique Id into 31 bits (e.g., u_id % 2147483647). Renumber > > > any collisions into the space above 2**31. You would still need to > > > keep some state when there is a collision, but if the Ids are > > > assigned sequentially then you are likely to win most of the time. > > > > Interesting idea. Like I said, consuming 32 bits within the life of the > > filesystem is going to be pretty hard. > > > > > I don't see what this has to do with vget(), however. > > > > not vget() itself, the vget vfsop. Unless I'm totally clueless here, the > > vget vfsop is supposed to return the vnode that repesents the passed in > > ino_t. > > The question to ask yourself is "under what circumstances do I care > about the ino_t?". > > My personal take would be to appeal to the Apple people here, > since they have already implemented one of these things, and > know how they did it, and the technical reasons why. > > My gut reaction would be to give ownership of the vnodes to the > FS itself, and ignore the problem (search for the string "TFS" > in the FS releated kernel code to see what I mean). > > > Terry Lambert > terry@lambert.org > --- > Any opinions in this posting are my own and not those of my present > or previous employers. > > To Unsubscribe: send mail to majordomo@FreeBSD.org > with "unsubscribe freebsd-arch" in the body of the message > To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-arch" in the body of the message