public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH] isofs, 2.4.20
@ 2003-02-15 22:10 Sumankar Shankar
  0 siblings, 0 replies; only message in thread
From: Sumankar Shankar @ 2003-02-15 22:10 UTC (permalink / raw)
  To: linux-kernel; +Cc: marcelo

There is this annoying bug in isofs in 2.4.19 and 2.4.20
that makes it impossible to read most udf written discs
that have been closed as iso9660. Its not a problem in
2.2.x but dont know when in 2.4 it came about. Dunno
if its fixed in 2.4.21-prewhatever but I didnt see any activity
about it in lkml, so the patch is here:

--- linux/fs/isofs/inode.c	Sun Feb 16 03:06:39 2003
+++ linux/fs/isofs-mankar/inode.c	Sun Feb 16 03:08:34 2003
@@ -939,7 +939,7 @@
 				if (!ninode)
 					goto abort;
 				firstext  = ninode->u.isofs_i.i_first_extent;
-				sect_size = ninode->u.isofs_i.i_section_size;
+				sect_size = ninode->u.isofs_i.i_section_size >> ISOFS_BUFFER_BITS(inode);
 				nextino   = ninode->u.isofs_i.i_next_section_ino;
 				iput(ninode);

[The patch is for 2.4.19 but Im quite sure it works
with 2.4.20 too.  The error is because iso9660 level 3 
support for handling files with more than 2 extents is 
badly handled.]

-Mankar

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2003-02-15 22:04 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2003-02-15 22:10 [PATCH] isofs, 2.4.20 Sumankar Shankar

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox