From 93628035393c88d03d15fbb899b96654dc6484aa Mon Sep 17 00:00:00 2001 From: Dominique Martinet Date: Mon, 29 May 2023 16:45:42 +0900 Subject: [PATCH] btrfs-progs: mkfs: make --quiet silence the 5.15 default change NOTE mkfs.btrfs help message for --quiet is 'no message except errors' so we probably ought to silence this as well in the quiet case. Author: Dominique Martinet Signed-off-by: David Sterba --- mkfs/main.c | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) diff --git a/mkfs/main.c b/mkfs/main.c index a31b32c6..7acd39ec 100644 --- a/mkfs/main.c +++ b/mkfs/main.c @@ -1539,12 +1539,14 @@ int BOX_MAIN(mkfs)(int argc, char **argv) btrfs_bg_type_to_tolerated_failures(data_profile)) warning("metadata has lower redundancy than data!\n"); - printf("NOTE: several default settings have changed in version 5.15, please make sure\n"); - printf(" this does not affect your deployments:\n"); - printf(" - DUP for metadata (-m dup)\n"); - printf(" - enabled no-holes (-O no-holes)\n"); - printf(" - enabled free-space-tree (-R free-space-tree)\n"); - printf("\n"); + if (bconf.verbose) { + printf("NOTE: several default settings have changed in version 5.15, please make sure\n"); + printf(" this does not affect your deployments:\n"); + printf(" - DUP for metadata (-m dup)\n"); + printf(" - enabled no-holes (-O no-holes)\n"); + printf(" - enabled free-space-tree (-R free-space-tree)\n"); + printf("\n"); + } mkfs_cfg.label = label; memcpy(mkfs_cfg.fs_uuid, fs_uuid, sizeof(mkfs_cfg.fs_uuid));