* fs/isofs/inode.c "bug"
@ 2004-06-24 10:19 Jason Mancini
0 siblings, 0 replies; only message in thread
From: Jason Mancini @ 2004-06-24 10:19 UTC (permalink / raw)
To: linux-kernel
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@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 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/
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2004-06-24 10:19 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2004-06-24 10:19 fs/isofs/inode.c "bug" Jason Mancini
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®