Commit 80dc113a authored by Jaegeuk Kim's avatar Jaegeuk Kim
Browse files

f2fs: LFS mode does not support ATGC



ATGC is using SSR which violates LFS mode used by zoned device.

Reviewed-by: default avatarChao Yu <chao@kernel.org>
Signed-off-by: default avatarJaegeuk Kim <jaegeuk@kernel.org>
parent dcf8e563
Loading
Loading
Loading
Loading
+5 −0
Original line number Diff line number Diff line
@@ -1342,6 +1342,11 @@ static int parse_options(struct super_block *sb, char *options, bool is_remount)
		return -EINVAL;
	}

	if (test_opt(sbi, ATGC) && f2fs_lfs_mode(sbi)) {
		f2fs_err(sbi, "LFS not compatible with ATGC");
		return -EINVAL;
	}

	if (f2fs_sb_has_readonly(sbi) && !f2fs_readonly(sbi->sb)) {
		f2fs_err(sbi, "Allow to mount readonly mode only");
		return -EROFS;