[220] in arla-drinkers
Re: arla, an AFS implementation
daemon@ATHENA.MIT.EDU (Bjoern Groenvall)
Fri Aug 21 04:23:04 1998
From owner-arla-drinkers@stacken.kth.se Fri Aug 21 08:23:02 1998
Return-Path: <owner-arla-drinkers@stacken.kth.se>
Delivered-To: arla-drinkers-mtg@bloom-picayune.mit.edu
Received: (qmail 13216 invoked from network); 21 Aug 1998 08:23:01 -0000
Received: from unknown (HELO sundance.stacken.kth.se) (130.237.234.41)
by bloom-picayune.mit.edu with SMTP; 21 Aug 1998 08:23:01 -0000
Received: (from majordom@localhost)
by sundance.stacken.kth.se (8.8.8/8.8.8) id KAA20761
for arla-drinkers-list; Fri, 21 Aug 1998 10:17:32 +0200 (MET DST)
Received: from bg.sics.se (bg.sics.se [193.10.66.124])
by sundance.stacken.kth.se (8.8.8/8.8.8) with ESMTP id KAA20754;
Fri, 21 Aug 1998 10:17:25 +0200 (MET DST)
Received: (from bg@localhost)
by bg.sics.se (8.8.5/8.8.5) id KAA02054;
Fri, 21 Aug 1998 10:20:00 +0200 (CEST)
To: Magnus Ahltorp <map@stacken.kth.se>
Cc: Derrick J Brashear <shadow@dementia.org>, arla-drinkers@stacken.kth.se
Subject: Re: arla, an AFS implementation
References: <Pine.LNX.3.95L.980820201215.5564A-100000@jooky.dementia.org> <lv1emub1588.fsf@yakko.stacken.kth.se>
From: Bjoern Groenvall <bg@sics.se>
Date: 21 Aug 1998 10:19:59 +0200
In-Reply-To: Magnus Ahltorp's message of 21 Aug 1998 03:41:27 +0200
Message-ID: <wu4sv6oifk.fsf@bg.sics.se>
Lines: 39
X-Mailer: Red Gnus v0.52/Emacs 19.34
Sender: owner-arla-drinkers@stacken.kth.se
Precedence: bulk
Magnus Ahltorp <map@stacken.kth.se> writes:
> > Speaking of cwd problems, I have a report from someone who wishes not to
> > step forward...:
> > Fresh boot of arla, 2.1.115:
> > foo# mystat /afs
> > File: "/afs"
> > Size: 8192 Filetype: Directory
> > Mode: (0777/drwxrwxrwx) Uid: ( 0/ root) Gid: ( 0/ wheel)
> > Device: 0,2 Inode: -86972672 Links: 2
> > ok so far.
> > foo# ls /afs
> > [...]
> > foo# mystat /afs
> > File: "/afs"
> > Size: 8192 Filetype: Directory
> > Mode: (0777/drwxrwxrwx) Uid: ( 0/ root) Gid: ( 0/ wheel)
> > Device: 8,1 Inode: -86972672 Links: 2
> >
> > Notice what happens to device....
>
> This is perfectly normal. I do a lot of magic with the inodes' device
> numbers. I set the device numbers of the inode to the device numbers
> of the cached inode to be able to do bmap directly.
According to POSIX, a programmer is allowed to assume that if stat
returns device and/or inode numbers that are different then one may
assume that they originate from different files. If device and inode
numbers are changing this will confuse code seriously, the program
will be fooled to deduce that the file must have been replaced under
its feet.
--
_ _ ,_______________.
Bjorn Gronvall (Björn Grönvall) /_______________/|
Swedish Institute of Computer Science | ||
PO Box 1263, S-164 29 Kista, Sweden | Schroedingers ||
Email: bg@sics.se, Phone +46 -8 752 15 25 | Cat |/
Cellular +46 -70 768 06 35, Fax +46 -8 751 72 30 `---------------'