mirror of
https://gitee.com/openharmony/third_party_f2fs-tools
synced 2025-02-17 01:19:53 +00:00
fsck.f2fs: fix broken file_map output
commit 299c0b566ad71f0a9ca0cc359d1d174de9068294 category: bugfix issue: #I6VAS0 CVE: NA Signed-off-by: DongSenhao <dongsenhao2@huawei.com> --------------------------------------- The new fsck progress should not be used for file_map. Reported-by: Michael Benedict <michaelbenedicttjahya@gmail.com> Signed-off-by: Jaegeuk Kim <jaegeuk@kernel.org> Signed-off-by: dongsenhao <dongsenhao2@huawei.com>
This commit is contained in:
parent
b844b4b34c
commit
1959950d86
@ -498,7 +498,7 @@ static int sanity_check_nid(struct f2fs_sb_info *sbi, u32 nid,
|
||||
fsck->chk.valid_node_cnt++;
|
||||
|
||||
/* Progress report */
|
||||
if (sbi->total_valid_node_count > 1000) {
|
||||
if (!c.show_file_map && sbi->total_valid_node_count > 1000) {
|
||||
unsigned int p10 = sbi->total_valid_node_count / 10;
|
||||
|
||||
if (sbi->fsck->chk.checked_node_cnt++ % p10)
|
||||
|
Loading…
x
Reference in New Issue
Block a user