lkml.org 
[lkml]   [2004]   [Jun]   [24]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
Subject[PATCH] fs/isofs/inode.c, 2-4GB files rejected on DVDs
From
Date
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@fokus.gmd.de
*/
+ /*
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@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/

\
 
 \ /
  Last update: 2005-03-22 14:04    [W:0.059 / U:0.944 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site