Message ID | 1406705525-349-1-git-send-email-guihc.fnst@cn.fujitsu.com (mailing list archive) |
---|---|
State | Superseded, archived |
Headers | show |
Gui Hecheng posted on Wed, 30 Jul 2014 15:32:05 +0800 as excerpted: > Also, add description of the potential failure as follows > "If a scrub is already running running, it fails." Just a typo (running running?) in the description...
On Wed, 2014-07-30 at 10:26 +0000, Duncan wrote: > Gui Hecheng posted on Wed, 30 Jul 2014 15:32:05 +0800 as excerpted: > > > Also, add description of the potential failure as follows > > "If a scrub is already running running, it fails." > > Just a typo (running running?) in the description... > Hmmm, that's my fault. Thanks very much, I will correct it soon. -- To unsubscribe from this list: send the line "unsubscribe linux-btrfs" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html
On Thu, Jul 31, 2014 at 09:25:07AM +0800, Gui Hecheng wrote: > On Wed, 2014-07-30 at 10:26 +0000, Duncan wrote: > > Gui Hecheng posted on Wed, 30 Jul 2014 15:32:05 +0800 as excerpted: > > > > > Also, add description of the potential failure as follows > > > "If a scrub is already running running, it fails." > > > > Just a typo (running running?) in the description... > > > Hmmm, that's my fault. Thanks very much, I will correct it soon. I'll fix the changelog, no need to resend the patch. -- To unsubscribe from this list: send the line "unsubscribe linux-btrfs" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html
diff --git a/Documentation/btrfs-scrub.txt b/Documentation/btrfs-scrub.txt index 7b27d63..b8d3b65 100644 --- a/Documentation/btrfs-scrub.txt +++ b/Documentation/btrfs-scrub.txt @@ -18,7 +18,7 @@ SUBCOMMAND ---------- *start* [-BdqrRf] [-c <ioprio_class> -n <ioprio_classdata>] <path>|<device>:: Start a scrub on all devices of the filesystem identified by <path> or on -a single <device>. +a single <device>. If a scrub is already running, the new one fails. + Without options, scrub is started as a background process. Progress can be obtained with the *scrub status* command. Scrubbing @@ -47,8 +47,8 @@ manpage). -n <ioprio_classdata>:::: Set IO priority classdata (see `ionice`(1) manpage). -f:::: -force to check whether scrub has started or resumed in userspace. -this is useful when scrub stat record file is damaged. +Force starting new scrub even if a scrub is already running. +This is useful when scrub stat record file is damaged. *cancel* <path>|<device>:: If a scrub is running on the filesystem identified by <path>, cancel it. diff --git a/cmds-scrub.c b/cmds-scrub.c index 03eb9ba..8c3d61c 100644 --- a/cmds-scrub.c +++ b/cmds-scrub.c @@ -1529,7 +1529,7 @@ out: static const char * const cmd_scrub_start_usage[] = { "btrfs scrub start [-BdqrRf] [-c ioprio_class -n ioprio_classdata] <path>|<device>", - "Start a new scrub", + "Start a new scrub. If a scrub is already running, the new one fails.", "", "-B do not background", "-d stats per device (-B only)", @@ -1538,7 +1538,7 @@ static const char * const cmd_scrub_start_usage[] = { "-R raw print mode, print full data instead of summary" "-c set ioprio class (see ionice(1) manpage)", "-n set ioprio classdata (see ionice(1) manpage)", - "-f force to skip checking whether scrub has started/resumed in userspace ", + "-f force starting new scrub even if a scrub is already running.", " this is useful when scrub stats record file is damaged", NULL };