Re: Problem with CD-rom in 2.3.15

David S. Miller (davem@redhat.com)
Thu, 2 Sep 1999 07:31:53 -0700


Date: Thu, 2 Sep 1999 16:04:56 +0200 (CEST)
From: Junichi Saito <j.saito@wanadoo.fr>

> with 2.3.15, when I listen mp3 from a CD-rom with x11amp, my console is
>flooded with messages like these at the end of every song... That's very
>anoying.

...

>_isofs_bmap: block >= EOF (655, 1280146)
>_isofs_bmap: block >= EOF (656, 1280146)
>_isofs_bmap: block >= EOF (657, 1280146)

The same with 2.3.16, when trying to view the contents of a compressed
archive.

Please try this patch:

--- fs/isofs/inode.c.~1~ Mon Aug 30 21:59:09 1999
+++ fs/isofs/inode.c Thu Sep 2 07:28:19 1999
@@ -953,6 +953,8 @@
& ~(PAGE_SIZE - 1);
if (b_off >= max_legal_read_offset)
goto abort_beyond_end;
+ err = 0;
+ goto abort;
}

offset = 0;
@@ -1019,7 +1021,7 @@
dummy.b_state = 0;
dummy.b_blocknr = -1000;
error = isofs_get_block(inode, block, &dummy, 0);
- if (!error)
+ if (!error && buffer_mapped(&dummy))
return dummy.b_blocknr;
return 0;
}

-
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/