]> git.ipfire.org Git - thirdparty/e2fsprogs.git/commit
resize2fs: check number of group descriptors only if meta_bg is disabled
authorJan Kara <jack@suse.cz>
Wed, 25 Sep 2024 17:19:26 +0000 (19:19 +0200)
committerTheodore Ts'o <tytso@mit.edu>
Fri, 25 Oct 2024 02:56:21 +0000 (22:56 -0400)
commitad56ccaae8b6d69350273c01ae2f72a66df245e0
tree9000ab24f5f9cd4c7bc3206990d83e0d6a5674a0
parent2c1e5543169254863e0edc40bd35712e21073479
resize2fs: check number of group descriptors only if meta_bg is disabled

When meta_bg feature is enabled, the total number of group descriptors
is not really limiting the filesystem size. So there's no reason to
check it in that case. This allows resize2fs to resize filesystems past
256TB boundary similarly as the kernel can do it.

Signed-off-by: Jan Kara <jack@suse.cz>
Reviewed-by: Ojaswin Mujoo <ojaswin@linux.ibm.com>
Link: https://lore.kernel.org/r/20240925171926.11354-1-jack@suse.cz
Signed-off-by: Theodore Ts'o <tytso@mit.edu>
resize/main.c