From linux-kernel-owner+willy=40w.ods.org@vger.kernel.org  Sat Feb 15 23:07:55 2003
Return-Path: <linux-kernel-owner+willy=40w.ods.org@vger.kernel.org>
Received: from vax.home.local (vax [10.2.1.2])
	by alpha.home.local (8.12.4/8.12.1) with ESMTP id h1FM7tli015014
	for <willy@w.ods.org>; Sat, 15 Feb 2003 23:07:55 +0100
Received: from vger.kernel.org (vger.kernel.org [209.116.70.75])
	by vax.home.local (8.12.2/8.12.1) with ESMTP id h1FMIf1P003213
	for <willy@w.ods.org>; Sat, 15 Feb 2003 23:18:42 +0100 (CET)
Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand
	id <S265333AbTBOWEA>; Sat, 15 Feb 2003 17:04:00 -0500
Received: (majordomo@vger.kernel.org) by vger.kernel.org
	id <S265351AbTBOWEA>; Sat, 15 Feb 2003 17:04:00 -0500
Received: from www.indiadirect.com ([139.142.153.40]:41479 "EHLO
	silverpencil.com") by vger.kernel.org with ESMTP id <S265333AbTBOWD7>;
	Sat, 15 Feb 2003 17:03:59 -0500
Received: from muyal [210.210.98.110] by silverpencil.com with ESMTP
  (SMTPD32-6.06) id AD381050142; Sat, 15 Feb 2003 15:20:40 -0700
From: "Sumankar Shankar" <sumankar@silverpencil.com>
To: linux-kernel@vger.kernel.org
Date: 	Sun, 16 Feb 2003 03:40:43 +0530
Subject: [PATCH] isofs, 2.4.20
CC: marcelo@conectiva.com.br
Message-ID: <3E4F083B.22610.1AB6DD@localhost>
X-mailer: Pegasus Mail for Win32 (v3.12c)
Sender: linux-kernel-owner@vger.kernel.org
Precedence: bulk
X-Mailing-List: 	linux-kernel@vger.kernel.org
Content-Length: 1182
Lines: 29

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
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

