Whamcloud - gitweb
mke2fs: don't display bigalloc/quota fs feature warnings in quiet mode
authorTheodore Ts'o <tytso@mit.edu>
Mon, 1 Apr 2013 00:29:46 +0000 (20:29 -0400)
committerTheodore Ts'o <tytso@mit.edu>
Mon, 1 Apr 2013 00:41:22 +0000 (20:41 -0400)
Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
misc/mke2fs.c

index fe5ce7d..7448255 100644 (file)
@@ -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/"