Skip to contentSkip to conversation

btrfs-progs: random fixes for usage string of btrfs scrub

PATCH Satoru Takeuchi 1 participant 1 message Aug 11, 2014 Btrfs file system

lore
Share & tools
lore
#0 lore raw

From: Satoru Takeuchi <[email protected]>

- Add missing description about "-R" option in the command usage of "btrfs scrub resume".

- Add missing comma to avoid the following misformatted command usage of "btrfs scrub start". See the line of "-R" option.

===
usage: btrfs scrub start [-BdqrRf] [-c ioprio_class -n ioprio_classdata] <path>|<device>

Start a new scrub

-B do not background
-d stats per device (-B only)
-q be quiet
-r read only mode
-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
this is useful when scrub stats record file is damaged
===

---
 cmds-scrub.c | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)
cmds-scrub.c +3 -2
index 0bf06ee..bd80a64 100644
@@ -1533,10 +1533,10 @@ static const char * const cmd_scrub_start_usage[] = {
 	"-d     stats per device (-B only)",
 	"-q     be quiet",
 	"-r     read only mode",
-	"-R     raw print mode, print full data instead of summary"
+	"-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 to skip checking whether scrub has started/resumed in userspace",
 	"       this is useful when scrub stats record file is damaged",
 	NULL
 };
@@ -1605,6 +1605,7 @@ static const char * const cmd_scrub_resume_usage[] = {
 	"-d     stats per device (-B only)",
 	"-q     be quiet",
 	"-r     read only mode",
+	"-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)",
 	NULL
Signature · 1 line
1.9.3