A ISO-9660 filesystem with Rock Ridge attributes allows to create
hard links but the implementation of the hsfs kernel code does not
create the same inode number for all linked names of the same file.
Repeat by:
mkdir test
cd test
echo > file
ln file link
cd ..
ls -li test
Gesamt 0
235953287 -rw-r--r-- 2 root other 0 Nov 19 23:40 file
235953287 -rw-r--r-- 2 root other 0 Nov 19 23:40 link
mkisofs -R -o out test
mount -F fbk -o ro,type=hsfs /dev/fbk0:out /mnt
ls -li /mnt
Gesamt 0
1415 -rw-r--r-- 2 root other 0 Nov 19 23:40 file
1419 -rw-r--r-- 2 root other 0 Nov 19 23:40 link
star -c /mnt > /dev/null
star: Missing links to '/mnt/file'.
star: Missing links to '/mnt/link'.
star: 1 blocks + 0 bytes (total of 10240 bytes = 10.00k).
star: The following problems occurred during archive processing:
star: Cannot: stat 0, open 0, read/write 0. Size changed 0.
star: Missing links 2, Name too long 0, File too big 0, Not dumped 0.
star: Processed all possible files, despite earlier errors.
NOTE: the last ls command for the /mnt directory lists the correct
link count but does not give the same inode number.
The fbk driver can be found on: ftp://ftp.fokus.gmd.de/pub/unix/kernel/fbk
but you may burn a CD to repeat the test.
The star source can be found on: ftp://ftp.fokus.gmd.de/pub/unix/star/alpha
you may also use tar from Solaris and get the following error:
tar -lcf /dev/null /mnt
tar: Fehlende Links auf /mnt/link
tar: Fehlende Links auf /mnt/file