Skip site navigation (1)Skip section navigation (2)
Date:      21 Nov 1999 05:27:57 +0100
From:      Assar Westerlund <assar@sics.se>
To:        Wes Peters <wes@softweyr.com>, "Daniel C. Sobral" <dcs@newsguy.com>
Cc:        hackers@FreeBSD.ORG
Subject:   Re: Portable way to compare struct stat's?
Message-ID:  <5ln1s88o4y.fsf@foo.sics.se>
In-Reply-To: Wes Peters's message of "Sat, 20 Nov 1999 20:21:40 -0700"
References:  <XFMail.991118185611.jdp@polstra.com> <3836DF98.9A84EC44@newsguy.com> <3836F873.D3B989FE@softweyr.com> <3836FF7C.2D8236AE@newsguy.com> <38376544.96B017E9@softweyr.com>

next in thread | previous in thread | raw e-mail | index | archive | help
Wes Peters <wes@softweyr.com> writes:
> "Daniel C. Sobral" wrote:
> > 
> > Just to expand a little bit more, some distributed filesystems *do
> > not* have a unique identifier like the inode.
> 
> So then the FreeBSD client software should create one?  Do they just assign
> a random number as the st_ino when stat'ing the file?

If there's none, you of course have to create one.  As long as you
keep giving the same `va_fileid' to the same file (by remembering what
files you have seen), I guess that's ok.  But then I don't know of any
distributed filesystem that acts this way (what's `same' in the text
above?).  What filesystems are like that?

Looking at some existing file systems:

NFS             - the server returns a 32-bit file-ID
AFS/Arla        - files are identified by (cell, volume, vnode,
                  uniquifier) which is hashed down to a 32 bit fileno
Coda            - same as AFS/Arla

/assar


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?5ln1s88o4y.fsf>