Bug#4557: Last file on iso9660-image always corrupted
Package: mkisofs
Version: 1.05-2
When creating an cd-image with "mkisofs", the last file on the image is
always corrupted when processing more than 1 files. It seems like the last
block of the file doesn't make it into the image.
This error can be reproduced as follows:
bash> mkdir small
bash> cp ChangeLog small
bash> mkisofs -r -v -o cd small
mkisofs v1.05
28 364 small
Cache hit for small/..
30 41 small/ChangeLog
Total extents scheduled to be written = 42
Total extents actually written = 42
Total translation table size: 0
Total rockridge attributes bytes: 250
Total directory bytes: 0
Path table size(bytes): 10
Max brk space used 7000
42 extents written (0 Mb)
bash> bash> mount -t iso9660 -o loop=/dev/loop0 cd /mnt
bash> cat /mnt/ChangeLog > /dev/null
bash> umount /mnt
[Everything is ok so far.]
bash> cp README small/
bash> mkisofs -r -v -o cd small
mkisofs v1.05
28 484 small
Cache hit for small/..
30 41 small/ChangeLog
42 44 small/README
Total extents scheduled to be written = 45
Total extents actually written = 45
Total translation table size: 0
Total rockridge attributes bytes: 328
Total directory bytes: 0
Path table size(bytes): 10
Max brk space used 7000
45 extents written (0 Mb)
bash> mount -t iso9660 -o loop=/dev/loop0 cd /mnt
bash> cat /mnt/README > /dev/null
cat: /mnt/README: I/O error
bash> cat /mnt/README | wc
cat: /mnt/README: I/O error
98 681 4096
bash> dir README
-rw------- 1 1000 1000 4182 Dec 20 1995 README
Reply to: