If an fs update fails because the ext2_filsys is opened in readonly
mode, just return EROFS and don't log that. This prevents unnecessary
spew for norecovery mounts.
Cc: <linux-ext4@vger.kernel.org> # v1.43
Fixes: 81cbf1ef4f5dab ("misc: add fuse2fs, a FUSE server for e2fsprogs")
Signed-off-by: "Darrick J. Wong" <djwong@kernel.org>
case EXT2_ET_UNIMPLEMENTED:
ret = -EOPNOTSUPP;
break;
+ case EXT2_ET_RO_FILSYS:
+ ret = -EROFS;
+ break;
case EXT2_ET_MAGIC_EXT2FS_FILSYS:
case EXT2_ET_MAGIC_BADBLOCKS_LIST:
case EXT2_ET_MAGIC_BADBLOCKS_ITERATE: