[PATCH] JFFS2 mount options discarded
From: Todd Poynor
Date: Tue Aug 17 2004 - 18:53:24 EST
Yoann Vandoorselaere noticed an attempt to mount a JFFS2 filesystem
read-only mounts writeable instead. I believe the fix is:
--- linux-2.6.8.1-orig/fs/jffs2/super.c 2004-08-15 11:46:43.000000000 -0700
+++ linux-2.6.8.1-jffs2-mount-fix/fs/jffs2/super.c 2004-08-17 15:45:17.935379784 -0700
@@ -130,7 +130,7 @@
mtd->index, mtd->name));
sb->s_op = &jffs2_super_operations;
- sb->s_flags |= MS_NOATIME;
+ sb->s_flags = flags | MS_NOATIME;
ret = jffs2_do_fill_super(sb, data, (flags&MS_VERBOSE)?1:0);
Clue me in if I'm off-base, thanks,
--
Todd Poynor
MontaVista Software
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/