summaryrefslogtreecommitdiff
path: root/cmds-scrub.c
diff options
context:
space:
mode:
authorGui Hecheng <guihc.fnst@cn.fujitsu.com>2014-07-30 15:32:05 +0800
committerDavid Sterba <dsterba@suse.cz>2014-08-22 15:07:01 +0200
commita2e2c295d9e674fd4940df9416a6f6063e0716ea (patch)
treeabe3357a1d6746d39b0bf0d313254244fa679c05 /cmds-scrub.c
parentdfe83649cf0cbf8ccc9a1ddba2883a28ad67eff5 (diff)
btrfs-progs: correct manpage option description for scrub
The -f option of scrub means to "force starting new scrub even if a scrub is already running" *not* "force to check whether scrub has started or resumed in userspace" as described originally. So replace the orignal description in the manpage and code. Also, add description of the potential failure as follows "If a scrub is already running, it fails." Signed-off-by: Gui Hecheng <guihc.fnst@cn.fujitsu.com> Signed-off-by: Satoru Takeuchi <takeuchi_satoru@jp.fujitsu.com> Cc: David Sterba <dsterba@suse.cz> Signed-off-by: David Sterba <dsterba@suse.cz>
Diffstat (limited to 'cmds-scrub.c')
-rw-r--r--cmds-scrub.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/cmds-scrub.c b/cmds-scrub.c
index a604b252..1d93942f 100644
--- a/cmds-scrub.c
+++ b/cmds-scrub.c
@@ -1527,7 +1527,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)",
@@ -1536,7 +1536,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
};