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>
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)"),