[PATCH] fs/isofs/inode.c, 2-4GB files rejected on DVDs

From: Jason Mancini
Date: Thu Jun 24 2004 - 05:52:08 EST


Let me try this again with Evolution...

> 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

=============================================================================
diff -Nru inode.c.orig inode.c
--- inode.c.orig 2004-06-24 03:38:09.171898370 -0700
+++ inode.c 2004-06-24 03:37:47.997909378 -0700
@@ -1282,12 +1282,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 files.
+ */
+ if (inode->i_size < 0) {
+ inode->i_size &= 0x0FFFFFFFF;
+ }

/*
* Some dipshit decided to store some other bit of information
=============================================================================


-
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/