]> git.ipfire.org Git - thirdparty/e2fsprogs.git/commitdiff
mke2fs: if the kernel supports bs > gt, skip the large blockize check
authorTheodore Ts'o <tytso@mit.edu>
Tue, 11 Nov 2025 20:53:46 +0000 (15:53 -0500)
committerTheodore Ts'o <tytso@mit.edu>
Tue, 11 Nov 2025 20:53:46 +0000 (15:53 -0500)
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 <tytso@mit.edu>
misc/mke2fs.c

index 6eca46a43facd93a82f952cff960871826f8aa99..2ace5a82f9c41ea49edc65182b39475b634455c6 100644 (file)
@@ -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)"),