forked from Minki/linux
f2fs: LFS mode does not support ATGC
ATGC is using SSR which violates LFS mode used by zoned device. Reviewed-by: Chao Yu <chao@kernel.org> Signed-off-by: Jaegeuk Kim <jaegeuk@kernel.org>
This commit is contained in:
parent
dcf8e5633e
commit
80dc113aaa
@ -1342,6 +1342,11 @@ default_check:
|
||||
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;
|
||||
|
Loading…
Reference in New Issue
Block a user