[799] in arla-drinkers
Re: inode clashes (linux 2.2.x, arla 0.2x)
daemon@ATHENA.MIT.EDU (Magnus Ahltorp)
Sat May 1 13:28:00 1999
From owner-arla-drinkers@stacken.kth.se Sat May 01 17:27:59 1999
Return-Path: <owner-arla-drinkers@stacken.kth.se>
Delivered-To: arla-drinkers-mtg@bloom-picayune.mit.edu
Received: (qmail 18813 invoked from network); 1 May 1999 17:27:59 -0000
Received: from unknown (HELO sundance.stacken.kth.se) (130.237.234.41)
by bloom-picayune.mit.edu with SMTP; 1 May 1999 17:27:59 -0000
Received: (from majordom@localhost)
by sundance.stacken.kth.se (8.8.8/8.8.8) id TAA22466
for arla-drinkers-list; Sat, 1 May 1999 19:21:38 +0200 (MET DST)
Received: from turbot.pdc.kth.se (turbot.pdc.kth.se [130.237.221.42])
by sundance.stacken.kth.se (8.8.8/8.8.8) with ESMTP id TAA22462
for <arla-drinkers@stacken.kth.se>; Sat, 1 May 1999 19:21:33 +0200 (MET DST)
Received: (from d95-mah@localhost)
by turbot.pdc.kth.se (8.8.7/8.8.7) id TAA23003;
Sat, 1 May 1999 19:21:32 +0200 (MET DST)
To: Simon Josefsson <jas@pdc.kth.se>
Cc: arla-drinkers@stacken.kth.se
Subject: Re: inode clashes (linux 2.2.x, arla 0.2x)
References: <ilur9p1u8go.fsf@xiphias.pdc.kth.se>
From: Magnus Ahltorp <map@stacken.kth.se>
Content-Type: text/plain; charset="iso-8859-1"
Date: 01 May 1999 19:21:32 +0200
In-Reply-To: Simon Josefsson's message of "30 Apr 1999 23:03:35 +0200"
Message-ID: <ixdzp3oaeoz.fsf@turbot.pdc.kth.se>
Lines: 16
X-Mailer: Gnus v5.6.45/Emacs 19.34
MIME-Version: 1.0
Content-Transfer-Encoding: 8bit
Sender: owner-arla-drinkers@stacken.kth.se
Precedence: bulk
> I assume this is due to mapping AFS inodes (or whatever the AFS
> equivalent is called) into UFS inodes failes to produce unique UFS
> inodes.
This is a problem, and it's an even worse problem on Linux, since
in-use inode numbers must be unique. I'm using a naïve approach: the
struct xnode pointer is used as the inode number. This guarantees that
the functions (machine, time, file)->inum and (machine, time,
inum)->file indeed are functions. However, it is not guaranteed that
file->inum is a function, which, as I understand, is a POSIX
requirement.
You are welcome to suggest better ways of doing this.
/Magnus
map@stacken.kth.se