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 <dominique.martinet@atmark-techno.com>
Signed-off-by: David Sterba <dsterba@suse.com>
This commit is contained in:
Dominique Martinet 2023-05-29 16:45:42 +09:00 committed by David Sterba
parent 055f215525
commit 9362803539
1 changed files with 8 additions and 6 deletions

View File

@ -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");
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));