Whamcloud - gitweb
LU-8465 ext2fs: fix to set tail flags with pfsck enabled 71/40071/2
authorWang Shilong <wshilong@ddn.com>
Mon, 28 Sep 2020 08:04:57 +0000 (16:04 +0800)
committerAndreas Dilger <adilger@whamcloud.com>
Mon, 28 Sep 2020 23:05:31 +0000 (23:05 +0000)
commit6505169f9a2a2cce0a8c383c1aa10292e01c6f4a
tree78a7b6049e71062a597a5ec1b23a0877eb7fb760
parent8d561b5d93a00d3b227917a0ff25da5fd5d64ffc
LU-8465 ext2fs: fix to set tail flags with pfsck enabled

If any of block/inode bitmap block checksum error happen,
tail flag should be set properly.

However, we firstly set tail flags in each thread, after
threads finish we clear those tail problem wrongly.

This will make fsck miss bitmap checksum erors later,
patch try to fix the problem by move all this kind of
logic in read_bitmaps_range_end()

Signed-off-by: Wang Shilong <wshilong@ddn.com>
Change-Id: Ie605f4475d35f9ce7d040036d97988c6512cb8c9
Reviewed-on: https://review.whamcloud.com/40071
Tested-by: jenkins <devops@whamcloud.com>
Tested-by: Maloo <maloo@whamcloud.com>
Reviewed-by: Andreas Dilger <adilger@whamcloud.com>
lib/ext2fs/rw_bitmaps.c