[Comm] Жесткие ссылки на DVD

Yuri N. Glibovetz =?iso-8859-1?q?greathit_=CE=C1_gmail=2Ecom?=
Пн Май 29 11:19:29 MSD 2006


Dmytro O. Redchuk пишет:
>>  >> RockRidge? 
>>
>>  EA> Да даже может быть и Joilet умеет... Иначе как пираты запихивают 15 
>>  EA> вариаций оффтопика на одну болвань... 
>>
>> также как и видео - с потерей качества :) 
> 
> И не только пираты.
> 
> MSDN'овский CD с тремя виндами (триста лет ему скоро будет): копируешь на
> диск -- получается больше гига.
> 
> Без ссылок не обошлось.
> 
>>
>> Bye 
>> Eugene V. Horohorin <genix на list.ru> Sun, 28 May 2006 00:27:49 +0400 
>>
>> === Posted with Qusnetsoft NewsReader 3.3 
> 

А почему именно Joilet или RockRidge? Это общее свойство iso9660 и
умение mkisofs находить жесткие ссылки:

$ md test-iso
$ dd if=/dev/zero of=test-iso/f1 bs=100M count=1
1+0 входных записей
1+0 выходных записей
$ ln test-iso/f1 test-iso/f2
$ ln test-iso/f1 test-iso/f3
$ ln test-iso/f1 test-iso/f4
$ ln test-iso/f1 test-iso/f5
$ ls -l test-iso
итого 512520
-rw-r--r--  5 yura yura 104857600 Май 29 10:09 f1
-rw-r--r--  5 yura yura 104857600 Май 29 10:09 f2
-rw-r--r--  5 yura yura 104857600 Май 29 10:09 f3
-rw-r--r--  5 yura yura 104857600 Май 29 10:09 f4
-rw-r--r--  5 yura yura 104857600 Май 29 10:09 f5
$ mkisofs -o test-iso.iso test-iso
  9.73% done, estimate finish Mon May 29 10:10:19 2006
 19.48% done, estimate finish Mon May 29 10:10:19 2006
 29.20% done, estimate finish Mon May 29 10:10:19 2006
 38.95% done, estimate finish Mon May 29 10:10:19 2006
 48.66% done, estimate finish Mon May 29 10:10:19 2006
 58.41% done, estimate finish Mon May 29 10:10:19 2006
 68.13% done, estimate finish Mon May 29 10:10:19 2006
 77.88% done, estimate finish Mon May 29 10:10:19 2006
 87.59% done, estimate finish Mon May 29 10:10:19 2006
 97.34% done, estimate finish Mon May 29 10:10:19 2006
Total translation table size: 0
Total rockridge attributes bytes: 0
Total directory bytes: 0
Path table size(bytes): 10
Max brk space used 21164
51374 extents written (100 MB)
$ ls -l test-iso.iso
-rw-r--r--  1 yura yura 105213952 Май 29 10:10 test-iso.iso
$ man mkisofs
[кусь]
  -cache-inodes
        Cache  inode and device numbers to find hard links to files.  If
        mkisofs finds a hard link (a file with multiple names), then the
        file  will  only appear once on the CD. This helps to save space
        on the CD.  The option -cache-inodes is  default  on  UNIX  like
        operating  systems.   Be  careful  when  using  this option on a
        filesystem without unique inode numbers  as  it  may  result  in
        files containing the wrong content on CD.
[кусь]

-- 
Чудес не бывает - бывают только глюки...

Linux Registered User #387540
http://counter.li.org/cgi-bin/runscript/display-person.cgi?user=387540




Подробная информация о списке рассылки community