search for: is_scrub_running_on_fs

Displaying 1 result from an estimated 1 matches for "is_scrub_running_on_fs".

2013 Dec 02
0
[PATCH] Btrfs-progs: add option to skip whether a scrub has started/resumed in userspace
...; case ''?'': default: usage(resume ? cmd_scrub_resume_usage : @@ -1195,7 +1199,7 @@ static int scrub_start(int argc, char **argv, int resume) * is a normal mode of operation to start scrub on multiple * single devices, there is no reason to prevent this. */ - if (is_scrub_running_on_fs(&fi_args, di_args, past_scrubs)) { + if (!force && is_scrub_running_on_fs(&fi_args, di_args, past_scrubs)) { ERR(!do_quiet, "ERROR: scrub is already running.\n" "To cancel use ''btrfs scrub cancel %s''.\n" @@ -1507,7 +1511,7 @@ ou...