mirror of
https://github.com/kdave/btrfs-progs
synced 2024-12-29 09:32:24 +00:00
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 <path> Signed-off-by: Anand Jain <anand.jain@oracle.com> Signed-off-by: David Sterba <dsterba@suse.com>
This commit is contained in:
parent
c19cc45e5e
commit
ebeaf0089d
@ -88,6 +88,8 @@ static const char * const cmd_subvol_create_usage[] = {
|
||||
"",
|
||||
"-i <qgroupid> 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;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user