OpenSolaris

Printable Version Enter a New Search
Bug ID 4294956
Synopsis hsfs creates wrong inode numbers for hard links
State 10-Fix Delivered (Fix available in build)
Category:Subcategory kernel:hsfs
Keywords hfs | inode | rtiq-reviewed
Responsible Engineer Frank Hofmann
Reported Against 5.8 , s28_32d
Duplicate Of
Introduced In
Commit to Fix snv_72
Fixed In snv_72
Release Fixed solaris_nevada(snv_72)
Related Bugs 6566056 , 6604922 , 6608985 , 6686818
Submit Date 29-November-1999
Last Update Date 31-August-2007
Description
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
Work Around
N/A
Comments
N/A