mirror of
https://github.com/kdave/btrfs-progs
synced 2025-03-03 17:27:50 +00:00
btrfs-progs: balance start: add global quiet option
Enable the quiet option to the balance start command. Does the job quietly. For example: $ btrfs -q balance start --full-balance <path> Signed-off-by: Anand Jain <anand.jain@oracle.com> Signed-off-by: David Sterba <dsterba@suse.com>
This commit is contained in:
parent
ec2e60bf55
commit
9326e1b99a
@ -470,9 +470,10 @@ static int do_balance(const char *path, struct btrfs_ioctl_balance_args *args,
|
|||||||
} else if (ret > 0) {
|
} else if (ret > 0) {
|
||||||
error("balance: %s", btrfs_err_str(ret));
|
error("balance: %s", btrfs_err_str(ret));
|
||||||
} else {
|
} else {
|
||||||
printf("Done, had to relocate %llu out of %llu chunks\n",
|
pr_verbose(MUST_LOG,
|
||||||
(unsigned long long)args->stat.completed,
|
"Done, had to relocate %llu out of %llu chunks\n",
|
||||||
(unsigned long long)args->stat.considered);
|
(unsigned long long)args->stat.completed,
|
||||||
|
(unsigned long long)args->stat.considered);
|
||||||
}
|
}
|
||||||
|
|
||||||
out:
|
out:
|
||||||
@ -501,6 +502,7 @@ static const char * const cmd_balance_start_usage[] = {
|
|||||||
" run the balance as a background process",
|
" run the balance as a background process",
|
||||||
HELPINFO_INSERT_GLOBALS,
|
HELPINFO_INSERT_GLOBALS,
|
||||||
HELPINFO_INSERT_VERBOSE,
|
HELPINFO_INSERT_VERBOSE,
|
||||||
|
HELPINFO_INSERT_QUIET,
|
||||||
NULL
|
NULL
|
||||||
};
|
};
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user