Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 01 Dec 1999 12:04:13 -0700
From:      Wes Peters <wes@softweyr.com>
To:        Randell Jesup <rjesup@wgate.com>
Cc:        Robert Watson <robert@cyrus.watson.org>, freebsd-hackers@FreeBSD.ORG
Subject:   Re: Portable way to compare struct stat's?
Message-ID:  <3845712D.F4D51A70@softweyr.com>
References:  <ybu4se3lomv.fsf@jesup.eng.tvol.net.jesup.eng.tvol.net>

next in thread | previous in thread | raw e-mail | index | archive | help
Randell Jesup wrote:
> 
> Robert Watson <robert@cyrus.watson.org> 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




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?3845712D.F4D51A70>