[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: [debian-knoppix] create_compress_fs : too big file !!!



Le Mardi 30 Septembre 2003 12:39, Klaus Knopper a écrit :
>  Klaus Knopper wrote:
> It is a bug in the kernel, right. Apparently, resolving hardlinks in
> iso9660 was not a top priority at the design phase of the implementation
> of iso9660 in Linux.
> 
> The problem is that iso9660 hardlinks do not get the same inode
> in the Linux implementation. First I suspected a bug in mkisofs, too,
> but Jörg Schilling (author of cdrecord and mkisofs) was helpful in
> explainig the problem. Since it is not a "critical" bug, nobody has
> cared of resolving it so far, it seems. So, hardlinks on a CD-Rom are
> not hardlinks anymore after being copied to HD.
> 
In order to better understand your explaination
I've done a simple test, with 1 file "hardlinked" on 2
When burned with the -cache-inodes (unix default) the iso size
is only the size of 1 file, so that indicates that it has been copied only once
in the iso (as desired), BUT the inodes in the iso differs !!! 
so it is no more possible to say they are identical without strong-arm tests!

root@servical:~# ls -li test
total 84448
 184380 -rw-r--r--    2 root     root     43180501 2003-09-30 15:45 titi
 184380 -rw-r--r--    2 root     root     43180501 2003-09-30 15:45 toto

root@servical:~# mkisofs -R -cache-inodes -o test.iso test
root@servical:~# ll test.iso
-rw-r--r--    1 root     root     43540480 2003-09-30 15:46 test.iso
root@servical:~# mount -o loop test.iso /mnt/test2
root@servical:~# ls -il /mnt/test2
total 84337
  47342 -rw-r--r--    2 root     root     43180501 2003-09-30 15:45 titi
  47458 -rw-r--r--    2 root     root     43180501 2003-09-30 15:45 toto
root@servical:~#

So, we just need to no more use hardlinks ;)
Thanks for your explaination, i go back to my cdburner.
Alain

_______________________________________________
debian-knoppix mailing list
debian-knoppix@linuxtag.org
http://mailman.linuxtag.org/mailman/listinfo/debian-knoppix


Reply to: