]> git.ipfire.org Git - thirdparty/e2fsprogs.git/commitdiff
mke2fs: suppress large block warning if the kernel supports them
authorTheodore Ts'o <tytso@mit.edu>
Wed, 12 Nov 2025 01:59:37 +0000 (20:59 -0500)
committerTheodore Ts'o <tytso@mit.edu>
Wed, 12 Nov 2025 01:59:37 +0000 (20:59 -0500)
Signed-off-by: Theodore Ts'o <tytso@mit.edu>
misc/mke2fs.c

index 2ace5a82f9c41ea49edc65182b39475b634455c6..54c0f3193e161e7810902450f01d32dd17f8864d 100644 (file)
@@ -1816,7 +1816,8 @@ profile_error:
                                        _("invalid block size - %s"), optarg);
                                exit(1);
                        }
-                       if (blocksize > 4096)
+                       if (blocksize > 4096 &&
+                           access("/sys/fs/ext4/features/blocksize_gt_pagesize", F_OK))
                                fprintf(stderr, _("Warning: blocksize %d not "
                                                  "usable on most systems.\n"),
                                        blocksize);