]> git.ipfire.org Git - thirdparty/e2fsprogs.git/commitdiff
mke2fs: warn that bigalloc is experimental only for large cluster sizes
authorTheodore Ts'o <tytso@mit.edu>
Sat, 14 Aug 2021 14:39:13 +0000 (10:39 -0400)
committerTheodore Ts'o <tytso@mit.edu>
Sat, 14 Aug 2021 19:16:09 +0000 (15:16 -0400)
Since we have done a lot of testing with a cluster size equal to 64k
(or 16 times the default 4k block size), mke2fs will only warn for
bigalloc file systems where the cluster size is greater than 16 times
the block size.

Signed-off-by: Theodore Ts'o <tytso@mit.edu>
misc/mke2fs.c
tests/d_fallocate_bigalloc/expect.gz
tests/d_punch_bigalloc/expect

index a457397281987e799bde1d2b8741ff2973efc45b..effe963cfe153a1e10317898facba38a6285cef6 100644 (file)
@@ -2526,11 +2526,12 @@ profile_error:
                exit(1);
        }
 
-       if (!quiet && ext2fs_has_feature_bigalloc(&fs_param))
-               fprintf(stderr, "%s", _("\nWarning: the bigalloc feature is "
-                                 "still under development\n"
-                                 "See https://ext4.wiki.kernel.org/"
-                                 "index.php/Bigalloc for more information\n\n"));
+       if (!quiet && ext2fs_has_feature_bigalloc(&fs_param) &&
+           EXT2_CLUSTER_SIZE(&fs_param) > 16 * EXT2_BLOCK_SIZE(&fs_param))
+               fprintf(stderr, "%s", _("\nWarning: bigalloc file systems "
+                               "with a cluster size greater than\n"
+                               "16 times the block size is considered "
+                               "experimental\n"));
 
        /*
         * Since sparse_super is the default, we would only have a problem
index 8640bc29dc71b09810f110d07d84d883b1109b88..167c069e262988204af9064c2571fa06c6cfbb87 100644 (file)
Binary files a/tests/d_fallocate_bigalloc/expect.gz and b/tests/d_fallocate_bigalloc/expect.gz differ
index caeb3a618d21dff5efd2e433eb828f558891c7a0..be841e6aea01ab1ba5c3383c3ddc2c2cfa24c670 100644 (file)
@@ -1,7 +1,3 @@
-
-Warning: the bigalloc feature is still under development
-See https://ext4.wiki.kernel.org/index.php/Bigalloc for more information
-
 Creating filesystem with 65536 1k blocks and 4096 inodes
 
 Allocating group tables:    \b\b\bdone