The patch titled jffs2: check if partition is marked RO on remount has been removed from the -mm tree. Its filename was jffs2-check-if-partition-is-marked-ro-on-remount.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 remount 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/fs.c | 3 +++ 1 file changed, 3 insertions(+) diff -puN fs/jffs2/fs.c~jffs2-check-if-partition-is-marked-ro-on-remount fs/jffs2/fs.c --- a/fs/jffs2/fs.c~jffs2-check-if-partition-is-marked-ro-on-remount +++ a/fs/jffs2/fs.c @@ -382,6 +382,9 @@ int jffs2_remount_fs (struct super_block if (c->flags & JFFS2_SB_FLAG_RO && !(sb->s_flags & MS_RDONLY)) return -EROFS; + if (!(c->mtd->flags & MTD_WRITEABLE)) + return -EROFS; + /* We stop if it was running, then restart if it needs to. This also catches the case where it was stopped and this is just a remount to restart it. _ Patches currently in -mm which might be from bigeasy@xxxxxxx are origin.patch jffs2-check-if-partition-is-marked-ro-on-remount.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