For defrag, resize, sload tools, let's advise to mount unclean
image to replay journal first in order to not lose any fsynced
data.
Signed-off-by: Chao Yu <yuchao0@huawei.com>
Signed-off-by: Jaegeuk Kim <jaegeuk@kernel.org>
}
cp = F2FS_CKPT(sbi);
+ if (c.func != FSCK && c.func != DUMP &&
+ !is_set_ckpt_flags(F2FS_CKPT(sbi), CP_UMOUNT_FLAG)) {
+ ERR_MSG("Mount unclean image to replay log first\n");
+ return -1;
+ }
+
print_ckpt_info(sbi);
if (c.quota_fix) {