diff options
author | Chao Yu <yuchao0@huawei.com> | 2019-07-11 09:29:15 +0800 |
---|---|---|
committer | Jaegeuk Kim <jaegeuk@kernel.org> | 2019-07-10 18:44:47 -0700 |
commit | 2d008835ec2fcf6eef3285e41e62a5eabd1fe76b (patch) | |
tree | 0aaa6fb752125876a742feb4e75edea499ef71e0 /fs/f2fs | |
parent | 56f3ce675103e3fb9e631cfb4131fc768bc23e9a (diff) | |
download | linux-2d008835ec2fcf6eef3285e41e62a5eabd1fe76b.tar.gz linux-2d008835ec2fcf6eef3285e41e62a5eabd1fe76b.tar.bz2 linux-2d008835ec2fcf6eef3285e41e62a5eabd1fe76b.zip |
f2fs: improve print log in f2fs_sanity_check_ckpt()
As Park Ju Hyung suggested:
"I'd like to suggest to write down an actual version of f2fs-tools
here as we've seen older versions of fsck doing even more damage
and the users might not have the latest f2fs-tools installed."
This patch give a more detailed info of how we fix such corruption
to user to avoid damageable repair with low version fsck.
Signed-off-by: Park Ju Hyung <qkrwngud825@gmail.com>
Signed-off-by: Chao Yu <yuchao0@huawei.com>
Signed-off-by: Jaegeuk Kim <jaegeuk@kernel.org>
Diffstat (limited to 'fs/f2fs')
-rw-r--r-- | fs/f2fs/super.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/fs/f2fs/super.c b/fs/f2fs/super.c index 1d33ca1a8c09..d95a681ef7c9 100644 --- a/fs/f2fs/super.c +++ b/fs/f2fs/super.c @@ -2688,7 +2688,9 @@ int f2fs_sanity_check_ckpt(struct f2fs_sb_info *sbi) if (__is_set_ckpt_flags(ckpt, CP_LARGE_NAT_BITMAP_FLAG) && le32_to_cpu(ckpt->checksum_offset) != CP_MIN_CHKSUM_OFFSET) { - f2fs_warn(sbi, "layout of large_nat_bitmap is deprecated, run fsck to repair, chksum_offset: %u", + f2fs_warn(sbi, "using deprecated layout of large_nat_bitmap, " + "please run fsck v1.13.0 or higher to repair, chksum_offset: %u, " + "fixed with patch: \"f2fs-tools: relocate chksum_offset for large_nat_bitmap feature\"", le32_to_cpu(ckpt->checksum_offset)); return 1; } |