mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Jason Mancini <xorbe@sbcglobal.net>
To: linux-kernel@vger.kernel.org
Subject: [PATCH] fs/isofs/inode.c, 2-4GB files rejected on DVDs
Date: Thu, 24 Jun 2004 03:44:30 -0700	[thread overview]
Message-ID: <1088073870.17691.8.camel@xorbe.dyndns.org> (raw)

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



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

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-06-24 10:44 Jason Mancini [this message]
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

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=1088073870.17691.8.camel@xorbe.dyndns.org \
    --to=xorbe@sbcglobal.net \
    --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®