From: Wakko Warner <wakko@animx.eu.org>
To: linux-kernel@vger.kernel.org
Subject: ISO9660 file size limitation
Date: Wed, 17 Nov 2004 18:14:38 -0500 [thread overview]
Message-ID: <20041117231437.GA21986@animx.eu.org> (raw)
I just came across this today after burning backups to dvd-r. The file that
caused the problem is 2,471,265,365 bytes. After searching a little bit
I found that the kernel doesn't like the size even though it's valid (That
is from what I read). So I did this:
--- inode.c-old 2004-11-17 17:50:51.000000000 -0500
+++ inode.c 2004-11-17 17:57:44.000000000 -0500
@@ -1218,12 +1218,16 @@
* 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 0
if ((inode->i_size < 0 || inode->i_size > 0x7FFFFFFE) &&
inode->i_sb->u.isofs_sb.s_cruft == 'n') {
printk(KERN_WARNING "Warning: defective CD-ROM. "
"Enabling \"cruft\" mount option.\n");
inode->i_sb->u.isofs_sb.s_cruft = 'y';
}
+#else
+ inode->i_size &= 0xFFFFFFFF;
+#endif
/*
* Some dipshit decided to store some other bit of information
It seems to work for me, but I would like to know if doing this might cause
problems. The large file is a tar.gz. After doing the above modification
and loading the module, I ran gzip -t on the file. gzip reported the file
was ok. With out doing "inode->i_size &= 0xFFFFFFFF", I noticed that the
file size was 18446744071885849685 (0xFFFFFFFF934C8455)
--
Lab tests show that use of micro$oft causes cancer in lab animals
next reply other threads:[~2004-11-17 23:05 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2004-11-17 23:14 Wakko Warner [this message]
-- strict thread matches above, loose matches on Subject: below --
2004-11-18 15:14 ISO9660 file size limitation O.Sezer
[not found] <20041118083638.CVFG2440.fep02.ttnet.net.tr@localhost>
2004-11-18 22:10 ` Wakko Warner
2004-11-23 11:42 ` Marcelo Tosatti
2004-11-23 22:53 ` Wakko Warner
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=20041117231437.GA21986@animx.eu.org \
--to=wakko@animx.eu.org \
--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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.