All of lore.kernel.org
 help / color / mirror / Atom feed
* ISO-9660 Rock Ridge gives different links different inums
@ 2003-01-10  3:08 Peter Chubb
  2003-01-10  3:23 ` Andrew McGregor
  0 siblings, 1 reply; 11+ messages in thread
From: Peter Chubb @ 2003-01-10  3:08 UTC (permalink / raw)
  To: eric; +Cc: linux-kernel


In linux 2.5.54, multiple links to the same file on a rock-ridge CD
have different inode numbers.  This confuses cpio, tar and cp -ra
because the multiple links are each copied separately as a single file.

It'll probably also confuse NFS, but I haven't tried that.

Example from the knoppix CD:

$ ls -il gunzip gzip uncompress zcat
1896278 -rwxr-xr-x    4 root     root        49256 Oct 10 01:31 gunzip
1896564 -rwxr-xr-x    4 root     root        49256 Oct 10 01:31 gzip
1902292 -rwxr-xr-x    4 root     root        49256 Oct 10 01:31 uncompress
1902856 -rwxr-xr-x    4 root     root        49256 Oct 10 01:31 zcat

(For comparison, here's what I see on XFS:
100663485 -rwxr-xr-x    4 root     root        49288 Nov  7 11:37 gunzip
100663485 -rwxr-xr-x    4 root     root        49288 Nov  7 11:37 gzip
100663485 -rwxr-xr-x    4 root     root        49288 Nov  7 11:37 uncompress
100663485 -rwxr-xr-x    4 root     root        49288 Nov  7 11:37 zcat
)


Currently the inode number appears to be the offset in bytes from the start of
the file system to the iso directory entry.  Files with multiple
directory entries (i.e., links) therefore have different inums.

I don't know enough about the ISO9660 standard to be sure what's best
to do about this.

--
Dr Peter Chubb				    peterc@gelato.unsw.edu.au
You are lost in a maze of BitKeeper repositories, all almost the same.

^ permalink raw reply	[flat|nested] 11+ messages in thread

end of thread, other threads:[~2003-01-15 21:23 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2003-01-10  3:08 ISO-9660 Rock Ridge gives different links different inums Peter Chubb
2003-01-10  3:23 ` Andrew McGregor
2003-01-10  3:34   ` Peter Chubb
2003-01-10  6:34     ` Denis Vlasenko
2003-01-10  8:56       ` Peter Chubb
2003-01-10  8:54         ` Denis Vlasenko
2003-01-10 15:58         ` Horst von Brand
2003-01-15 21:07           ` Mark H. Wood
2003-01-15 21:28             ` Jesse Pollard
2003-01-13 22:16     ` Bill Davidsen
2003-01-13 23:10       ` Peter Chubb

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.