aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJaegeuk Kim <jaegeuk@kernel.org>2023-12-02 09:06:16 -0800
committerJaegeuk Kim <jaegeuk@kernel.org>2023-12-04 17:16:27 -0800
commitf2ae743ca93f3bc090c82ee1e7d30ab0fc109ebc (patch)
tree25aa4bf8c3adc244f3c76ef5706966b1420b5239
parent10dad5ed7ce11a2ade677badf68f25c83dc90a32 (diff)
downloadf2fs-tools-f2ae743ca93f3bc090c82ee1e7d30ab0fc109ebc.tar.gz
fsck.f2fs: run full scan if checkpoint is disabled
Let's fix any inconsistency until checkpint being enabled back. Reviewed-by: Daeho Jeong <daehojeong@google.com> Signed-off-by: Jaegeuk Kim <jaegeuk@kernel.org>
-rw-r--r--fsck/mount.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/fsck/mount.c b/fsck/mount.c
index e957904..30c6228 100644
--- a/fsck/mount.c
+++ b/fsck/mount.c
@@ -1435,6 +1435,7 @@ static int f2fs_should_proceed(struct f2fs_super_block *sb, u32 flag)
{
if (!c.fix_on && (c.auto_fix || c.preen_mode)) {
if (flag & CP_FSCK_FLAG ||
+ flag & CP_DISABLED_FLAG ||
flag & CP_QUOTA_NEED_FSCK_FLAG ||
c.abnormal_stop || c.fs_errors ||
(exist_qf_ino(sb) && (flag & CP_ERROR_FLAG))) {