From: Theodore Ts'o Date: Wed, 12 Nov 2025 01:59:37 +0000 (-0500) Subject: mke2fs: suppress large block warning if the kernel supports them X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=0d6d9ba8eda618779cc6f0e1e03ac4146cdf15ca;p=thirdparty%2Fe2fsprogs.git mke2fs: suppress large block warning if the kernel supports them Signed-off-by: Theodore Ts'o --- diff --git a/misc/mke2fs.c b/misc/mke2fs.c index 2ace5a82..54c0f319 100644 --- a/misc/mke2fs.c +++ b/misc/mke2fs.c @@ -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);