The patch titled Subject: init/do_mounts.c: treat EROFS like EACCES has been added to the -mm tree. Its filename is init-do_mountsc-treat-erofs-like-eacces.patch This patch should soon appear at http://ozlabs.org/~akpm/mmots/broken-out/init-do_mountsc-treat-erofs-like-eacces.patch and later at http://ozlabs.org/~akpm/mmotm/broken-out/init-do_mountsc-treat-erofs-like-eacces.patch Before you just go and hit "reply", please: a) Consider who else should be cc'ed b) Prefer to cc a suitable mailing list as well c) Ideally: find the original patch on the mailing list and do a reply-to-all to that, adding suitable additional cc's *** Remember to use Documentation/SubmitChecklist when testing your code *** The -mm tree is included into linux-next and is updated there every 3-4 working days ------------------------------------------------------ From: Philippe De Muyter <phdm@xxxxxxxxx> Subject: init/do_mounts.c: treat EROFS like EACCES Some combinations of filesystem and block device (at least vfat on mmc) yield -EROFS instead of -EACCES when the device is read-only. Retry mounting with MS_RDONLY set, just like for the EACCES case, instead of failing directly. Signed-off-by: Philippe De Muyter <phdm@xxxxxxxxx> Cc: Al Viro <viro@xxxxxxxxxxxxxxxxxx> Signed-off-by: Andrew Morton <akpm@xxxxxxxxxxxxxxxxxxxx> --- init/do_mounts.c | 1 + 1 file changed, 1 insertion(+) diff -puN init/do_mounts.c~init-do_mountsc-treat-erofs-like-eacces init/do_mounts.c --- a/init/do_mounts.c~init-do_mountsc-treat-erofs-like-eacces +++ a/init/do_mounts.c @@ -394,6 +394,7 @@ retry: case 0: goto out; case -EACCES: + case -EROFS: flags |= MS_RDONLY; goto retry; case -EINVAL: _ Patches currently in -mm which might be from phdm@xxxxxxxxx are init-do_mountsc-treat-erofs-like-eacces.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