kern/91488: [patch] cd9660 filesystem cannot handle files larger than 2GB

Skip to first unread message

Carl Drougge

Jan 7, 2006, 7:15:06 PM1/7/06

>Number: 91488
>Category: kern
>Synopsis: [patch] cd9660 filesystem cannot handle files larger than 2GB
>Confidential: no
>Severity: non-critical
>Priority: low
>Responsible: freebsd-bugs
>State: open
>Class: sw-bug
>Submitter-Id: current-users
>Arrival-Date: Sun Jan 08 00:20:02 GMT 2006
>Originator: Carl Drougge
>Release: 6.0-RELEASE
FreeBSD 6.0-RELEASE FreeBSD 6.0-RELEASE #1: Sun Jan 8 00:15:19 CET 2006 i386
The cd9660 filesystem can not handle files of more than 2147483647 bytes,
while the specification of the filesystem arguably allows for files up to
4294967295 bytes. (Specifically, the "32 bit quantity" is not specified as
signed or unsigned. In my opinion, since negative file sizes are not
meaningfull, it should be interpreted as unsigned.)
Mount an iso9660 filesystem containing a file of more than 2147483647
bytes, and try to access this file.

ls gives "ls: large_file: Value too large to be stored in data type",
attempts to read the file return EOF at once.
I have not tested this patch much, but it seems to work.

--- sys/isofs/cd9660/ Wed Mar 16 09:09:52 2005
+++ sys/isofs/cd9660/cd9660_node.h Sun Jan 8 00:14:54 2006
@@ -69,7 +69,7 @@
ino_t i_ino; /* inode number of found directory */

long iso_extent; /* extent of file */
- long i_size;
+ u_long i_size;
long iso_start; /* actual start of data of file (may be different */
/* from iso_extent, if file has extended attributes) */

_______________________________________________ mailing list
To unsubscribe, send any mail to ""

Posted automagically by a mail2news gateway at e.V.
Please direct questions, flames, donations, etc. to

Reply all
Reply to author
0 new messages