Following is a patch for the ISO9660 inode.c file, which handles
files that are longer than 800000000 Bytes as defective files.
It automatically switched to the 'cruft' mode that just allowed a
filelength of 16MB.
Since DVD-videos have files limited to 1GB I adjusted the limit
to that size.
That one who has a broken CD-ROM an needs this feature can put the mount
option 'cruft' for the old effect.
At the moment I'm not on the kernel-list. Please mail me direct to:
espero7757@hotmail.com
Tnx
patch follows
------8<-----
--- linux/fs/isofs/inode.c.orig Mon Oct 5 19:39:34 1998
+++ linux/fs/isofs/inode.c Sun Nov 22 12:03:41 1998
@@ -1106,6 +1106,6 @@
/* There are defective discs out there - we do this to protect
- ourselves. A cdrom will never contain more than 800Mb */
- if((inode->i_size < 0 || inode->i_size > 800000000) &&
+ ourselves. A DVD will never contain more than 1Gb
*/
+ if((inode->i_size < 0 || inode->i_size > 1073741824) &&
inode->i_sb->u.isofs_sb.s_cruft == 'n') {
printk("Warning: defective cdrom. Enabling \"cruft\" mount
option.\n"
);
______________________________________________________
Get Your Private, Free Email at http://www.hotmail.com
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.rutgers.edu
Please read the FAQ at http://www.tux.org/lkml/