Whamcloud - gitweb
LU-15985 e2fsck: skip block scanning if the inode is too bad 02/55802/4
authorLi Dongyang <dongyangli@ddn.com>
Fri, 19 Jul 2024 06:09:16 +0000 (16:09 +1000)
committerAndreas Dilger <adilger@whamcloud.com>
Thu, 1 Aug 2024 14:44:19 +0000 (14:44 +0000)
commitcd423df181fba2de46dc632fcebda754a1a4f683
treeb0f351e053a5b923094649633c41ae626e88bbcb
parent1364410986c8c05605bda8efa06a6da9b87e1316
LU-15985 e2fsck: skip block scanning if the inode is too bad

If the inode is badly corrupted, scanning the extent tree/blocks could
get stuck repeating the error with:
Inode %i block %b conflicts with critical metadata, skipping block checks.

This error PR_1_CRITICAL_METADATA_COLLISION bumps up inode badness by 2
already, we could skip the block/extent scanning if the inode badness is
above the threshold.

Add test case f_ibadness_meta_collision to verify this.

Change-Id: Ifd7246ee8cceb4ea11d2c255310c5af0176bfb1c
Signed-off-by: Li Dongyang <dongyangli@ddn.com>
Reviewed-on: https://review.whamcloud.com/c/tools/e2fsprogs/+/55802
Tested-by: jenkins <devops@whamcloud.com>
Tested-by: Maloo <maloo@whamcloud.com>
Reviewed-by: Li Xi <lixi@ddn.com>
Reviewed-by: Andreas Dilger <adilger@whamcloud.com>
e2fsck/pass1.c
tests/f_ibadness_meta_collision/expect.1 [new file with mode: 0644]
tests/f_ibadness_meta_collision/expect.2 [new file with mode: 0644]
tests/f_ibadness_meta_collision/image.gz [new file with mode: 0644]
tests/f_ibadness_meta_collision/name [new file with mode: 0644]
tests/f_ibadness_meta_collision/script [new file with mode: 0644]