From owner-freebsd-hackers Sat Nov 20 20:28: 3 1999 Delivered-To: freebsd-hackers@freebsd.org Received: from foo.sics.se (foo.sics.se [193.10.66.234]) by hub.freebsd.org (Postfix) with ESMTP id 5182515749 for ; Sat, 20 Nov 1999 20:27:58 -0800 (PST) (envelope-from assar@foo.sics.se) Received: (from assar@localhost) by foo.sics.se (8.9.3/8.9.3) id FAA03595; Sun, 21 Nov 1999 05:27:58 +0100 (CET) (envelope-from assar) To: Wes Peters , "Daniel C. Sobral" Cc: hackers@FreeBSD.ORG Subject: Re: Portable way to compare struct stat's? References: <3836DF98.9A84EC44@newsguy.com> <3836F873.D3B989FE@softweyr.com> <3836FF7C.2D8236AE@newsguy.com> <38376544.96B017E9@softweyr.com> From: Assar Westerlund Date: 21 Nov 1999 05:27:57 +0100 In-Reply-To: Wes Peters's message of "Sat, 20 Nov 1999 20:21:40 -0700" Message-ID: <5ln1s88o4y.fsf@foo.sics.se> Lines: 23 User-Agent: Gnus/5.070098 (Pterodactyl Gnus v0.98) Emacs/20.4 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG Wes Peters 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