jffs2: check if partition is marked RO on mount
PATCH RESEND 1/1 jffs2: check if partition is marked RO on mount
and if it is, don't tell userspace that write is possible.
Signed-off-by Sebastian Siewior <[email protected]>
--- fs/jffs2/super.c | 3 +++ 1 files changed, 3 insertions(+), 0 deletions(-)
fs/jffs2/super.c +3 -0
@@ -108,6 +108,9 @@ static int jffs2_fill_super(struct super_block *sb, void *data, int silent)#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); }
Signature · 1 line
1.5.3.5