From 447da244eb31f11516d991891f985a2770080033 Mon Sep 17 00:00:00 2001 From: Theodore Ts'o Date: Sun, 31 Mar 2013 20:29:46 -0400 Subject: [PATCH] mke2fs: don't display bigalloc/quota fs feature warnings in quiet mode Signed-off-by: "Theodore Ts'o" --- misc/mke2fs.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/misc/mke2fs.c b/misc/mke2fs.c index fe5ce7d..7448255 100644 --- a/misc/mke2fs.c +++ b/misc/mke2fs.c @@ -1942,13 +1942,15 @@ profile_error: exit(1); } - if (fs_param.s_feature_ro_compat & EXT4_FEATURE_RO_COMPAT_BIGALLOC) + if (!quiet && + (fs_param.s_feature_ro_compat & EXT4_FEATURE_RO_COMPAT_BIGALLOC)) fprintf(stderr, _("\nWarning: the bigalloc feature is still " "under development\n" "See https://ext4.wiki.kernel.org/" "index.php/Bigalloc for more information\n\n")); - if (fs_param.s_feature_ro_compat & EXT4_FEATURE_RO_COMPAT_QUOTA) + if (!quiet && + (fs_param.s_feature_ro_compat & EXT4_FEATURE_RO_COMPAT_QUOTA)) fprintf(stderr, _("\nWarning: the quota feature is still " "under development\n" "See https://ext4.wiki.kernel.org/" -- 1.8.3.1