mirror of
https://github.com/kdave/btrfs-progs
synced 2025-01-13 17:21:05 +00:00
btrfs-progs: scrub cancel: add global quiet option
Enable the quiet option to the scrub cancel command. Does the job quietly. For example: $ btrfs -q scrub cancel <mnt> Signed-off-by: Anand Jain <anand.jain@oracle.com> Signed-off-by: David Sterba <dsterba@suse.com>
This commit is contained in:
parent
bdca4824b4
commit
c4cb0e8fc3
@ -1626,6 +1626,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
|
||||
};
|
||||
|
||||
@ -1662,7 +1664,7 @@ static int cmd_scrub_cancel(const struct cmd_struct *cmd, int argc, char **argv)
|
||||
}
|
||||
|
||||
ret = 0;
|
||||
printf("scrub cancelled\n");
|
||||
pr_verbose(MUST_LOG, "scrub cancelled\n");
|
||||
|
||||
out:
|
||||
close_file_or_dir(fdmnt, dirstream);
|
||||
|
Loading…
Reference in New Issue
Block a user