Message ID | 20200608063851.8874-9-anand.jain@oracle.com (mailing list archive) |
---|---|
State | New, archived |
Headers | show |
Series | btrfs-progs: add quiet option | expand |
diff --git a/cmds/scrub.c b/cmds/scrub.c index e3b6427b47ae..3256f20121ae 100644 --- a/cmds/scrub.c +++ b/cmds/scrub.c @@ -1624,6 +1624,8 @@ static DEFINE_SIMPLE_COMMAND(scrub_start, "start"); static const char * const cmd_scrub_cancel_usage[] = { "btrfs scrub cancel <path>|<device>", "Cancel a running scrub", + HELPINFO_INSERT_GLOBALS, + HELPINFO_INSERT_QUIET, NULL }; @@ -1660,7 +1662,7 @@ static int cmd_scrub_cancel(const struct cmd_struct *cmd, int argc, char **argv) } ret = 0; - printf("scrub cancelled\n"); + pr_verbose(-1, "scrub cancelled\n"); out: close_file_or_dir(fdmnt, dirstream);
Enable the quiet option to the btrfs(8) scrub cancel command. Does the job quietly. For example: btrfs -q scrub cancel <mnt> Signed-off-by: Anand Jain <anand.jain@oracle.com> --- cmds/scrub.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-)