From ebeaf0089d94c131aae70b8572340c54eadd0cdb Mon Sep 17 00:00:00 2001 From: Anand Jain Date: Fri, 12 Jun 2020 01:41:17 +0800 Subject: [PATCH] btrfs-progs: subvolume create: add global quiet option Enable the quiet option to the subvolume create command. Does the job quietly. For example: $ btrfs --quiet subvolume create Signed-off-by: Anand Jain Signed-off-by: David Sterba --- cmds/subvolume.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/cmds/subvolume.c b/cmds/subvolume.c index 279c75d0..459661a9 100644 --- a/cmds/subvolume.c +++ b/cmds/subvolume.c @@ -88,6 +88,8 @@ static const char * const cmd_subvol_create_usage[] = { "", "-i add the newly created subvolume to a qgroup. This", " option can be given multiple times.", + HELPINFO_INSERT_GLOBALS, + HELPINFO_INSERT_QUIET, NULL }; @@ -169,7 +171,7 @@ static int cmd_subvol_create(const struct cmd_struct *cmd, if (fddst < 0) goto out; - printf("Create subvolume '%s/%s'\n", dstdir, newname); + pr_verbose(MUST_LOG, "Create subvolume '%s/%s'\n", dstdir, newname); if (inherit) { struct btrfs_ioctl_vol_args_v2 args;