fs/isofs/inode.c "bug"

From: Jason Mancini
Date: Thu Jun 24 2004 - 05:22:01 EST


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


--- inode.c 2004-06-24 02:43:33.000000000 -0700
+++ /usr/src/linux/fs/isofs/inode.c 2004-06-24 03:09:44.290764261 -0700
@@ -1282,13 +1286,20 @@
* WARNING: ISO-9660 filesystems > 1 GB and even > 2 GB are fully
* legal. Do not prevent to use DVD's schilling@xxxxxxxxxxxx
*/
+ /*
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/

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/