From owner-freebsd-hackers Wed Dec 1 11: 7:47 1999 Delivered-To: freebsd-hackers@freebsd.org Received: from ind.alcatel.com (postal.xylan.com [208.8.0.248]) by hub.freebsd.org (Postfix) with ESMTP id 5E84E15308 for ; Wed, 1 Dec 1999 11:07:33 -0800 (PST) (envelope-from wes@softweyr.com) Received: from mailhub.xylan.com (mailhub [198.206.181.70]) by ind.alcatel.com (8.9.3+Sun/8.9.1 (ind.alcatel.com 3.0 [OUT])) with SMTP id LAA18911; Wed, 1 Dec 1999 11:04:16 -0800 (PST) X-Origination-Site: Received: from omni.xylan.com by mailhub.xylan.com (SMI-8.6/SMI-SVR4 (mailhub 2.1 [HUB])) id LAA12764; Wed, 1 Dec 1999 11:04:15 -0800 Received: from softweyr.com (dyn0.utah.xylan.com) by omni.xylan.com (4.1/SMI-4.1 (xylan engr [SPOOL])) id AA16340; Wed, 1 Dec 99 11:04:09 PST Message-Id: <3845712D.F4D51A70@softweyr.com> Date: Wed, 01 Dec 1999 12:04:13 -0700 From: Wes Peters Organization: Softweyr LLC X-Mailer: Mozilla 4.61 [en] (X11; I; FreeBSD 3.3-RELEASE i386) X-Accept-Language: en Mime-Version: 1.0 To: Randell Jesup Cc: Robert Watson , freebsd-hackers@FreeBSD.ORG Subject: Re: Portable way to compare struct stat's? References: Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG Randell Jesup wrote: > > Robert Watson writes: > >> On a single system, if st_dev and st_ino are equal, you must be referring > >> to the same object. If not, I'd like to hear about it. > > > >This assumption has always caused lots of pain and suffering for > >distributed file system people -- in a distributed file system, the > >requirement that you can generate a unique 32 bit number for each file or > >directory visible in the FS is a fairly arduous one. Either the number is > > Too bad that the "that's the way it's always been done"/"inodes > were handed down by God" arguments are so hard to overcome. 1/2 :-) Perhaps we simply need to expand the size of ino_t and carefully convert smaller types to it in the stat call? -- "Where am I, and what am I doing in this handbasket?" Wes Peters Softweyr LLC wes@softweyr.com http://softweyr.com/ To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message