Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id ; Tue, 4 Feb 2003 16:24:31 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id ; Tue, 4 Feb 2003 16:24:31 -0500 Received: from hunnerberg.nijmegen.internl.net ([217.149.192.32]:3026 "EHLO hunnerberg.nijmegen.internl.net") by vger.kernel.org with ESMTP id ; Tue, 4 Feb 2003 16:24:30 -0500 Date: Tue, 4 Feb 2003 22:28:12 +0100 From: Frank van Maarseveen To: "H. Peter Anvin" Cc: linux-kernel@vger.kernel.org Subject: Re: isofs hardlink bug (inode numbers different) Message-ID: <20030204212812.GA32465@iapetus.localdomain> References: <20030126235556.GA5560@paradise.net.nz> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.4i X-Subliminal-Message: Use Linux! Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1587 Lines: 42 On Mon, Feb 03, 2003 at 07:48:06PM -0800, H. Peter Anvin wrote: > > There are inode numbers stored in RockRidge attributes, but using them > comes with some humongous caveats: > > First: You have absolutely no guarantee that they are actually > unique. Broken software could easily have written them with all > zeroes. > > Second: If there are files on the CD-ROM *without* RockRidge > attributes, you can get collisions with the synthesized inode numbers > for non-RR files. Suppose that the root of a iso9660 has entries such as '/', '.' and '..' all with inode 2 and maybe that there are some other indications that the creator applied UNIX style inode numbering, wouldn't it be reasonable to assume that inode numbers should be trusted? In which case any wrong inode should be declared a bug in the program that created the image? A mount option to handle this could be useful as well. > > Third: If you actually rely on inode numbers to be able to find your > files, like most versions of Unix including old (but not current) > versions of Linux, then they are completely meaningless. No need to change that part, well, except maybe for knfsd if we cannot safely export a CD-ROM but that's something I don't know. It is annoying that wonderful zisofs backups need fixup scripts for the hard links after a restore. -- Frank - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/