[PATCH] isofs kernel 2.1.11[789]

Stephen Landamore (stephenl@arcam.co.uk)
Fri, 04 Sep 1998 10:00:24 +0100


Hello,

If you do the following:
# mount -t iso9660 /dev/cdrom /cdrom -o ro,norock
# ls /cdrom

then you get an oops. (Actually I don't think this would have happened
if I'd had a Joliet CD in my drive, but I was using an old backup
disc, generated with mkisofs)

Patch is attached below. Although I am running 2.1.117 I've checked
2.1.119 and it applies cleanly. Fix is trivial and makes sense looking
at the following code.

I have a question: why is the default mapping set to 'a' (Acorn)?
Surely it should be set to 'n' (normal)? Of course, I wouldn't have
found this problem then ;-)

--- linux/fs/isofs/namei.c.orig Thu Sep 3 23:29:51 1998
+++ linux/fs/isofs/namei.c Thu Sep 3 23:31:50 1998
@@ -162,7 +162,8 @@
dpnt = de->name;

if (dir->i_sb->u.isofs_sb.s_rock ||
- dir->i_sb->u.isofs_sb.s_joliet_level) {
+ dir->i_sb->u.isofs_sb.s_joliet_level ||
+ dir->i_sb->u.isofs_sb.s_mapping == 'a') {
if (! page) {
page = (unsigned char *)
__get_free_page(GFP_KERNEL);

regards,
stephen

-
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/faq.html