search for: ioprio_classdata

Displaying 2 results from an estimated 2 matches for "ioprio_classdata".

2012 Feb 06
0
[PATCH] Btrfs-progs: make scrub IO priority configurable
...+++ b/btrfs.c @@ -131,12 +131,15 @@ static struct Command commands[] = { "The filesystem must be unmounted.\n" }, { do_scrub_start, -1, - "scrub start", "[-Bdqr] <path>|<device>\n" + "scrub start", + "[-Bdqr] [-c ioprio_class -n ioprio_classdata] <path>|<device>\n" "Start a new scrub.", "\n-B do not background\n" "-d stats per device (-B only)\n" "-q quiet\n" "-r read only mode\n" + "-c set ioprio class (see ionice(1) manpage)\n" + "-n...
2013 Dec 02
0
[PATCH] Btrfs-progs: add option to skip whether a scrub has started/resumed in userspace
...pt(argc, argv, "BdqrRc:n:")) != -1) { + while ((c = getopt(argc, argv, "BdqrRc:n:f")) != -1) { switch (c) { case ''B'': do_background = 0; @@ -1123,6 +1124,9 @@ static int scrub_start(int argc, char **argv, int resume) case ''n'': ioprio_classdata = (int)strtol(optarg, NULL, 10); break; + case ''f'': + force = 1; + break; 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 operat...