Whamcloud - gitweb
LU-15002 mke2fs: do not set the BLOCK_UNINIT on groups has GDT 74/52274/3
authorLi Dongyang <dongyangli@ddn.com>
Tue, 5 Sep 2023 13:36:24 +0000 (23:36 +1000)
committerAndreas Dilger <adilger@whamcloud.com>
Mon, 25 Sep 2023 05:58:14 +0000 (05:58 +0000)
commit03a6a831ce5d78e024c03a21f7de88b14519ef99
tree80379f6616653471c24fe2dc58d615276ad43a62
parent6e18f9e2c1ae7300aade5f3b2d8b65b9f5e64fc3
LU-15002 mke2fs: do not set the BLOCK_UNINIT on groups has GDT

This patch prepares the expansion of GDT blocks beyond a
single group, by make mke2fs to not set BLOCK_UNINIT on
groups with GDT blocks, block/inode bitmaps, or inode table
blocks allocated.

Otherwise, we still rely on kernel side to initialize the
block bitmap if the groups has BLOCK_UNINIT set, and the
kernel doesn't know a group could have GDT blocks allocated,
so it would make an bad block bitmap.

As a result, expect output of several tests needs to be changed,
especially if the test uses dumpe2fs to print the group summary.

Change-Id: I7847388d1f482d4e9cf6acb8fc6da3218d425e08
Signed-off-by: Li Dongyang <dongyangli@ddn.com>
Reviewed-on: https://review.whamcloud.com/c/tools/e2fsprogs/+/52274
Tested-by: jenkins <devops@whamcloud.com>
Tested-by: Maloo <maloo@whamcloud.com>
Reviewed-by: Andreas Dilger <adilger@whamcloud.com>
lib/ext2fs/initialize.c
tests/j_ext_long_trans/expect
tests/j_long_trans/expect
tests/j_long_trans_mcsum_32bit/expect
tests/j_long_trans_mcsum_64bit/expect
tests/j_short_trans_mcsum_64bit/expect
tests/j_short_trans_recover_mcsum_64bit/expect
tests/m_bigjournal/expect.1
tests/m_resize_inode_meta_bg/expect.1
tests/m_uninit/expect.1