Skip to contentSkip to conversation

isofs, 2.4.20

PATCH New Sumankar Shankar 1 participant 1 message Feb 15, 2003 Isofs filesystem

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 isofs, 2.4.20

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:

fs/isofs-mankar/inode.c renamed from fs/isofs/inode.c +1 -1
@@ -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