]> git.ipfire.org Git - thirdparty/e2fsprogs.git/commit
mke2fs: do not set the BLOCK_UNINIT on groups has GDT
authorLi Dongyang <dongyangli@ddn.com>
Mon, 25 Sep 2023 06:08:01 +0000 (16:08 +1000)
committerTheodore Ts'o <tytso@mit.edu>
Thu, 4 Apr 2024 14:49:09 +0000 (10:49 -0400)
commit7150bea307a30f393d184d81a80d9a3ae2e78638
tree21d0797b9872c50b40d233f53d5f9c9168e74ef5
parentecb37fe311cd67fe7c86eae069551ad15fb20c03
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.

Signed-off-by: Li Dongyang <dongyangli@ddn.com>
Reviewed-by: Andreas Dilger <adilger@dilger.ca>
Link: https://lore.kernel.org/r/20230925060801.1397581-2-dongyangli@ddn.com
Signed-off-by: Theodore Ts'o <tytso@mit.edu>
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