From: Theodore Ts'o Date: Tue, 11 Nov 2025 20:53:46 +0000 (-0500) Subject: mke2fs: if the kernel supports bs > gt, skip the large blockize check X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=6d9033ff854eb346746176f43aa063137275d4b1;p=thirdparty%2Fe2fsprogs.git mke2fs: if the kernel supports bs > gt, skip the large blockize check There are patches which alow ext4 to support file systems where the block size is larger than the page size. For such kernels, skip the test for large block sizes, which would require the user to explicitly answer give permission to proceed. Signed-off-by: Theodore Ts'o --- diff --git a/misc/mke2fs.c b/misc/mke2fs.c index 6eca46a4..2ace5a82 100644 --- a/misc/mke2fs.c +++ b/misc/mke2fs.c @@ -2578,7 +2578,8 @@ profile_error: fs_param.s_desc_size = EXT2_MIN_DESC_SIZE_64BIT; /* This check should happen beyond the last assignment to blocksize */ - if (blocksize > sys_page_size) { + if (blocksize > sys_page_size && + access("/sys/fs/ext4/features/blocksize_gt_pagesize", F_OK)) { if (!force) { com_err(program_name, 0, _("%d-byte blocks too big for system (max %d)"),