public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH] fs/isofs/inode.c, 2-4GB files rejected on DVDs
@ 2004-06-24 10:44 Jason Mancini
  2004-06-24 12:50 ` Chris Wedgwood
  2004-06-24 15:01 ` Andries Brouwer
  0 siblings, 2 replies; 7+ messages in thread
From: Jason Mancini @ 2004-06-24 10:44 UTC (permalink / raw)
  To: linux-kernel

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



^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2004-07-01 16:45 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2004-06-24 10:44 [PATCH] fs/isofs/inode.c, 2-4GB files rejected on DVDs Jason Mancini
2004-06-24 12:50 ` Chris Wedgwood
2004-06-24 15:01 ` Andries Brouwer
2004-06-24 18:58   ` Marc-Christian Petersen
2004-06-24 21:00     ` Andries Brouwer
2004-06-25  1:41   ` Jason Mancini
2004-07-01 16:45   ` Rogier Wolff

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox