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)) btrfs_bg_type_to_tolerated_failures(data_profile))
warning("metadata has lower redundancy than data!\n"); warning("metadata has lower redundancy than data!\n");
printf("NOTE: several default settings have changed in version 5.15, please make sure\n"); if (bconf.verbose) {
printf(" this does not affect your deployments:\n"); printf("NOTE: several default settings have changed in version 5.15, please make sure\n");
printf(" - DUP for metadata (-m dup)\n"); printf(" this does not affect your deployments:\n");
printf(" - enabled no-holes (-O no-holes)\n"); printf(" - DUP for metadata (-m dup)\n");
printf(" - enabled free-space-tree (-R free-space-tree)\n"); printf(" - enabled no-holes (-O no-holes)\n");
printf("\n"); printf(" - enabled free-space-tree (-R free-space-tree)\n");
printf("\n");
}
mkfs_cfg.label = label; mkfs_cfg.label = label;
memcpy(mkfs_cfg.fs_uuid, fs_uuid, sizeof(mkfs_cfg.fs_uuid)); memcpy(mkfs_cfg.fs_uuid, fs_uuid, sizeof(mkfs_cfg.fs_uuid));