From cf7d5f188643ac56e15d611680b30334bf4c2930 Mon Sep 17 00:00:00 2001 From: Theodore Ts'o Date: Fri, 25 Jul 2003 17:39:51 -0400 Subject: [PATCH] mke2fs.c (PRS): Add warning if using -j and the blocksize is greater than 4096, since some kernels don't support ext3 with large block sizes. (Addresses Debian bug #193773) --- misc/ChangeLog | 4 ++++ misc/mke2fs.c | 5 +++++ 2 files changed, 9 insertions(+) diff --git a/misc/ChangeLog b/misc/ChangeLog index d62461397..89a522df9 100644 --- a/misc/ChangeLog +++ b/misc/ChangeLog @@ -1,5 +1,9 @@ 2003-07-25 Theodore Ts'o + * mke2fs.c (PRS): Add warning if using -j and the blocksize is + greater than 4096, since some kernels don't support ext3 + with large block sizes. (Addresses Debian bug #193773) + * badblocks.c (set_o_direct): Remove debugging printf. (Addresses Debian bug #201499) diff --git a/misc/mke2fs.c b/misc/mke2fs.c index 110ca3593..1c98c50a6 100644 --- a/misc/mke2fs.c +++ b/misc/mke2fs.c @@ -1123,6 +1123,11 @@ static void PRS(int argc, char *argv[]) "(max %d), forced to continue\n"), blocksize, sys_page_size); } + if ((blocksize > 4096) && + (param.s_feature_compat & EXT3_FEATURE_COMPAT_HAS_JOURNAL)) + fprintf(stderr, "\nWarning: some 2.4 kernels do not support " + "blocksizes greater than 4096 \n\tusing ext3." + " Use -b 4096 if this is an issue for you.\n\n"); if (param.s_feature_incompat & EXT3_FEATURE_INCOMPAT_JOURNAL_DEV) { if (!fs_type) -- 2.47.3