diff --git a/fs/hfsplus/super.c b/fs/hfsplus/super.c index 948b8aaee33e..9352efbbf736 100644 --- a/fs/hfsplus/super.c +++ b/fs/hfsplus/super.c @@ -360,6 +360,12 @@ static int hfsplus_reconfigure(struct fs_context *fc) pr_warn("filesystem is marked journaled, leaving read-only.\n"); sb->s_flags |= SB_RDONLY; fc->sb_flags |= SB_RDONLY; + } else { + pr_err("remount from read-ony to read-write " + "is not supported, leaving read-only.\n"); + sb->s_flags |= SB_RDONLY; + fc->sb_flags |= SB_RDONLY; + return -ENOSYS; } } return 0;