Skip to contentSkip to conversation

Fix issues in 'btrfs help' output and manpage

PATCH New Sami Liedes 1 participant 1 message May 26, 2012 Btrfs file system

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 Fix issues in 'btrfs help' output and manpage

* Fix typos and some grammar errors

* Fix some arguments like <id> -> <subvolid> so they are the same on the manpage and 'btrfs help' output

* Add missing commands to manpage

* Change manpage order to conform to 'btrfs help' output, which I find the more logical of the two

---
 btrfs.c           |    2 +-
 cmds-balance.c    |    8 +--
 cmds-filesystem.c |    2 +-
 cmds-inspect.c    |    4 +-
 cmds-scrub.c      |    8 +--
 cmds-subvolume.c  |    4 +-
 man/btrfs.8.in    |  172 ++++++++++++++++++++++++++++++++---------------------
 7 files changed, 117 insertions(+), 83 deletions(-)
btrfs.c +1 -1
index 88238d6..cf16cb8 100644
@@ -187,7 +187,7 @@ const struct cmd_group btrfs_cmd_group;
 
 static const char * const cmd_help_usage[] = {
 	"btrfs help [--full]",
-	"Dislay help information",
+	"Display help information",
 	"",
 	"--full     display detailed help on every command",
 	NULL
cmds-balance.c +4 -4
index 38a7426..7633eae 100644
@@ -472,7 +472,7 @@ static int cmd_balance_start(int argc, char **argv)
 
 static const char * const cmd_balance_pause_usage[] = {
 	"btrfs [filesystem] balance pause <path>",
-	"Pause running balance",
+	"Pause a running balance operation",
 	NULL
 };
 
@@ -509,7 +509,7 @@ static int cmd_balance_pause(int argc, char **argv)
 
 static const char * const cmd_balance_cancel_usage[] = {
 	"btrfs [filesystem] balance cancel <path>",
-	"Cancel running or paused balance",
+	"Cancel a running or paused balance operation",
 	NULL
 };
 
@@ -546,7 +546,7 @@ static int cmd_balance_cancel(int argc, char **argv)
 
 static const char * const cmd_balance_resume_usage[] = {
 	"btrfs [filesystem] balance resume <path>",
-	"Resume interrupted balance",
+	"Resume an interrupted balance operation",
 	NULL
 };
 
@@ -605,7 +605,7 @@ static int cmd_balance_resume(int argc, char **argv)
 
 static const char * const cmd_balance_status_usage[] = {
 	"btrfs [filesystem] balance status [-v] <path>",
-	"Show status of running or paused balance",
+	"Show status of a running or paused balance operation",
 	"",
 	"-v     be verbose",
 	NULL
cmds-filesystem.c +1 -1
index 1f53d1c..0aaee54 100644
@@ -212,7 +212,7 @@ static void print_one_uuid(struct btrfs_fs_devices *fs_devices)
 }
 
 static const char * const cmd_show_usage[] = {
-	"btrfs filesystem show [--all-devices] [<uuid>|<label>]",
+	"btrfs filesystem show [--all-devices|<uuid>|<label>]",
 	"Show the structure of a filesystem",
 	"If no argument is given, structure of all present filesystems is shown.",
 	NULL
cmds-inspect.c +2 -2
index 2f0228f..d80bcf6 100644
@@ -77,7 +77,7 @@ out:
 
 static const char * const cmd_inode_resolve_usage[] = {
 	"btrfs inspect-internal inode-resolve [-v] <inode> <path>",
-	"Get file system paths for the given inode",
+	"Get filesystem paths for the given inode",
 	NULL
 };
 
@@ -116,7 +116,7 @@ static int cmd_inode_resolve(int argc, char **argv)
 
 static const char * const cmd_logical_resolve_usage[] = {
 	"btrfs inspect-internal logical-resolve [-Pv] <logical> <path>",
-	"Get file system paths for the given logical address",
+	"Get filesystem paths for the given logical address",
 	NULL
 };
 
cmds-scrub.c +4 -4
index c4503f4..7e5d675 100644
@@ -1479,7 +1479,7 @@ out:
 
 static const char * const cmd_scrub_start_usage[] = {
 	"btrfs scrub start [-Bdqr] <path>|<device>",
-	"Start a new scrub",
+	"Start a new scrub operation",
 	"",
 	"-B     do not background",
 	"-d     stats per device (-B only)",
@@ -1495,7 +1495,7 @@ static int cmd_scrub_start(int argc, char **argv)
 
 static const char * const cmd_scrub_cancel_usage[] = {
 	"btrfs scrub cancel <path>|<device>",
-	"Cancel a running scrub",
+	"Cancel a running scrub operation",
 	NULL
 };
 
@@ -1551,7 +1551,7 @@ again:
 
 static const char * const cmd_scrub_resume_usage[] = {
 	"btrfs scrub resume [-Bdqr] <path>|<device>",
-	"Resume previously canceled or interrupted scrub",
+	"Resume a previously canceled or interrupted scrub operation",
 	"",
 	"-B     do not background",
 	"-d     stats per device (-B only)",
@@ -1567,7 +1567,7 @@ static int cmd_scrub_resume(int argc, char **argv)
 
 static const char * const cmd_scrub_status_usage[] = {
 	"btrfs scrub status [-dR] <path>|<device>",
-	"Show status of running or finished scrub",
+	"Show status of a running or finished scrub operation",
 	"",
 	"-d     stats per device",
 	"-R     print raw stats",
cmds-subvolume.c +2 -2
index 950fa8f..23c72b4 100644
@@ -394,7 +394,7 @@ static int cmd_snapshot(int argc, char **argv)
 }
 
 static const char * const cmd_subvol_get_default_usage[] = {
-	"btrfs subvolume get-dafault <path>",
+	"btrfs subvolume get-default <path>",
 	"Get the default subvolume of a filesystem",
 	NULL
 };
@@ -432,7 +432,7 @@ static int cmd_subvol_get_default(int argc, char **argv)
 }
 
 static const char * const cmd_subvol_set_default_usage[] = {
-	"btrfs subvolume set-dafault <subvolid> <path>",
+	"btrfs subvolume set-default <subvolid> <path>",
 	"Set the default subvolume of a filesystem",
 	NULL
 };
man/btrfs.8.in +103 -69

296 lines not on this page · raw message

Signature · 1 line
1.7.10