]> git.ipfire.org Git - thirdparty/e2fsprogs.git/commitdiff
mke2fs.c (PRS): Add warning if using -j and the blocksize is
authorTheodore Ts'o <tytso@mit.edu>
Fri, 25 Jul 2003 21:39:51 +0000 (17:39 -0400)
committerTheodore Ts'o <tytso@mit.edu>
Fri, 25 Jul 2003 21:39:51 +0000 (17:39 -0400)
greater than 4096, since some kernels don't support ext3
with large block sizes.  (Addresses Debian bug #193773)

misc/ChangeLog
misc/mke2fs.c

index d62461397b66e99b218552abd8dc4be98b7cf229..89a522df989e05ebb50a0178cc7d23b63d89c79a 100644 (file)
@@ -1,5 +1,9 @@
 2003-07-25  Theodore Ts'o  <tytso@mit.edu>
 
+       * 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)
 
index 110ca359300f65f05767d8d713cd9bb8ac9e3c4f..1c98c50a6e259c34c761ab6e6b48c28fcdbe1654 100644 (file)
@@ -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)