mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: "Jason Mancini" <jayrusman@hotmail.com>
To: linux-kernel@vger.kernel.org
Subject: fs/isofs/inode.c "bug"
Date: Thu, 24 Jun 2004 03:19:34 -0700	[thread overview]
Message-ID: <BAY17-F24AlDCVrvGAk00075c7b@hotmail.com> (raw)

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/


                 reply	other threads:[~2004-06-24 10:19 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=BAY17-F24AlDCVrvGAk00075c7b@hotmail.com \
    --to=jayrusman@hotmail.com \
    --cc=linux-kernel@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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®