The patch titled jffs2: check if partition is marked RO on mount has been removed from the -mm tree. Its filename was jffs2-check-if-partition-is-marked-ro-on-mount.patch This patch was dropped because of plot-lossage The current -mm tree may be found at http://userweb.kernel.org/~akpm/mmotm/ ------------------------------------------------------ Subject: jffs2: check if partition is marked RO on mount From: Sebastian Siewior <bigeasy@xxxxxxx> and if it is, don't tell userspace that write is possible. Signed-off-by: Sebastian Siewior <bigeasy@xxxxxxxxxxxxx> Cc: David Woodhouse <dwmw2@xxxxxxxxxxxxx> Signed-off-by: Andrew Morton <akpm@xxxxxxxxxxxxxxxxxxxx> --- fs/jffs2/super.c | 3 +++ 1 file changed, 3 insertions(+) diff -puN fs/jffs2/super.c~jffs2-check-if-partition-is-marked-ro-on-mount fs/jffs2/super.c --- a/fs/jffs2/super.c~jffs2-check-if-partition-is-marked-ro-on-mount +++ a/fs/jffs2/super.c @@ -108,6 +108,9 @@ static int jffs2_fill_super(struct super #ifdef CONFIG_JFFS2_FS_POSIX_ACL sb->s_flags |= MS_POSIXACL; #endif + if (!(c->mtd->flags & MTD_WRITEABLE)) + sb->s_flags |= MS_RDONLY; + return jffs2_do_fill_super(sb, data, silent); } _ Patches currently in -mm which might be from bigeasy@xxxxxxx are origin.patch jffs2-check-if-partition-is-marked-ro-on-mount.patch -- To unsubscribe from this list: send the line "unsubscribe mm-commits" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html