From: Frank van Maarseveen <F.vanMaarseveen@inter.NL.net>
To: "H. Peter Anvin" <hpa@zytor.com>
Cc: linux-kernel@vger.kernel.org
Subject: Re: isofs hardlink bug (inode numbers different)
Date: Tue, 4 Feb 2003 22:28:12 +0100 [thread overview]
Message-ID: <20030204212812.GA32465@iapetus.localdomain> (raw)
In-Reply-To: <b1nd5m$rhp$1@cesium.transmeta.com>
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
next prev parent reply other threads:[~2003-02-04 21:24 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2003-01-26 23:55 Volker Kuhlmann
2003-02-04 3:48 ` H. Peter Anvin
2003-02-04 21:28 ` Frank van Maarseveen [this message]
2003-02-04 21:52 ` H. Peter Anvin
2003-02-05 11:30 ` Kasper Dupont
2003-02-05 19:41 ` H. Peter Anvin
2003-02-10 21:16 James Pearson
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20030204212812.GA32465@iapetus.localdomain \
--to=f.vanmaarseveen@inter.nl.net \
--cc=hpa@zytor.com \
--cc=linux-kernel@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®