fs/isofs/inode.c "bug"
DVDs with 2-4GB files get their filesizes truncated. Are there even "cruft" CDs in circulation today? Maybe it should be a config item. A popular competing os seems to handle 2-4GB isofs filesizes. -Jason Mancini
usr/src/linux/fs/isofs/inode.c 2004-06-24 03:09:44.290764261 -0700 renamed from inode.c 2004-06-24 02:43:33.000000000 -0700 +0 -0
@@ -1282,13 +1286,20 @@ * WARNING: ISO-9660 filesystems > 1 GB and even > 2 GB are fully * legal. Do not prevent to use DVD's
*/
+ /*
if ((inode->i_size < 0 || inode->i_size > 0x7FFFFFFE) &&
sbi->s_cruft == 'n') {
printk(KERN_WARNING "Warning: defective CD-ROM. "
"Enabling \"cruft\" mount option.\n");
sbi->s_cruft = 'y';
}+ */
+ /* Forget "cruft", I have DVDs to read with 2-4GB filesizes.
+ */
+ if (inode->i_size < 0) {
+ inode->i_size &= 0x0FFFFFFFF;
+ }
/*
* Some dipshit decided to store some other bit of information
* in the high byte of the file length. Catch this and holler.
_________________________________________________________________
MSN Toolbar provides one-click access to Hotmail from any Web page � FREE download! http://toolbar.msn.click-url.com/go/onm00200413ave/direct/01/