Skip to content

Commit 781c28a

Browse files
committed
btrfs-progs: unify parameter references
Drop the < > around the value spec, update to the meaning. This is still nto complete as some options could take values that can be further interpreted like size with offsets. Signed-off-by: David Sterba <dsterba@suse.com>
1 parent a83c276 commit 781c28a

File tree

10 files changed

+26
-26
lines changed

10 files changed

+26
-26
lines changed

check/main.c

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -10571,10 +10571,10 @@ static const char * const cmd_check_usage[] = {
1057110571
" without prior analysis of problems found on the filesystem.",
1057210572
"",
1057310573
"Starting point selection:",
10574-
OPTLINE("-s, --super <superblock>", "use this superblock copy"),
10574+
OPTLINE("-s, --super NUMBER", "use this superblock copy"),
1057510575
OPTLINE("-b, --backup", "use the first valid backup root copy"),
10576-
OPTLINE("-r, --tree-root <bytenr>", "use the given bytenr for the tree root"),
10577-
OPTLINE("--chunk-root <bytenr>", "use the given bytenr for the chunk tree root"),
10576+
OPTLINE("-r, --tree-root ", "use the given bytenr for the tree root"),
10577+
OPTLINE("--chunk-root BYTENR", "use the given bytenr for the chunk tree root"),
1057810578
"",
1057910579
"Operation modes:",
1058010580
OPTLINE("--readonly", "run in read-only mode (default)"),
@@ -10583,7 +10583,7 @@ static const char * const cmd_check_usage[] = {
1058310583
"WARNING: it is possible to run with --repair but on a mounted filesystem "
1058410584
"that will most likely lead to a corruption unless the filesystem "
1058510585
"is quiescent in a quiescent state which may not be possible to guarantee"),
10586-
OPTLINE("--mode <MODE>", "allows choice of memory/IO trade-offs where MODE is one of:"),
10586+
OPTLINE("--mode MODE", "allows choice of memory/IO trade-offs where MODE is one of:"),
1058710587
OPTLINE("", "original - read inodes and extents to memory (requires more memory, does less IO)"),
1058810588
OPTLINE("", "lowmem - try to use less memory but read blocks again when needed"),
1058910589
"",
@@ -10594,7 +10594,7 @@ static const char * const cmd_check_usage[] = {
1059410594
"Check and reporting options:",
1059510595
OPTLINE("--check-data-csum", "verify checksums of data blocks"),
1059610596
OPTLINE("-Q, --qgroup-report", "print a report on qgroup consistency"),
10597-
OPTLINE("-E, --subvol-extents <subvolid>", "print subvolume extents and sharing state"),
10597+
OPTLINE("-E, --subvol-extents SUBVOLID", "print subvolume extents and sharing state"),
1059810598
OPTLINE("-p, --progress", "indicate progress"),
1059910599
"",
1060010600
"Deprecated or moved options:",

cmds/inspect-dump-super.c

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -88,15 +88,15 @@ static const char * const cmd_inspect_dump_super_usage[] = {
8888
"",
8989
OPTLINE("-f, --full", "print full superblock information, backup roots etc."),
9090
OPTLINE("-a, --all", "print information about all superblocks"),
91-
OPTLINE("-s, --super <super>", "specify which copy to print out (values: 0, 1, 2)"),
91+
OPTLINE("-s, --super NUMBER", "specify which copy to print out (values: 0, 1, 2)"),
9292
OPTLINE("-F, --force", "attempt to dump superblocks with bad magic"),
93-
OPTLINE("--bytenr <offset>", "specify alternate superblock offset"),
93+
OPTLINE("--bytenr BYTENR", "specify alternate superblock offset"),
9494
"",
9595
"Deprecated syntax:",
96-
OPTLINE("-s <bytenr>", "specify alternate superblock offset, values other than 0, 1, 2 "
96+
OPTLINE("-s BYTENR", "specify alternate superblock offset, values other than 0, 1, 2 "
9797
"will be interpreted as --bytenr for backward compatibility, "
9898
"option renamed for consistency with other tools (eg. check)"),
99-
OPTLINE("-i <super>", "specify which copy to print out (values: 0, 1, 2), now moved to --super"),
99+
OPTLINE("-i NUMBER", "specify which copy to print out (values: 0, 1, 2), now moved to --super"),
100100
NULL
101101
};
102102

cmds/inspect-dump-tree.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -153,7 +153,7 @@ static const char * const cmd_inspect_dump_tree_usage[] = {
153153
OPTLINE("-R, --backups", "same as --roots plus print backup root info"),
154154
OPTLINE("-u, --uuid", "print only the uuid tree"),
155155
OPTLINE("-b, --block <block_num>", "print info from the specified block only can be specified multiple times"),
156-
OPTLINE("-t, --tree <tree_id>", "print only tree with the given id (string or number)"),
156+
OPTLINE("-t, --tree TREEID", "print only tree with the given id (string or number)"),
157157
OPTLINE("--follow", "use with -b, to show all children tree blocks of <block_num>"),
158158
OPTLINE("--noscan", "do not scan the devices from the filesystem, use only the listed ones"),
159159
OPTLINE("--bfs", "breadth-first traversal of the trees, print nodes, then leaves (default)"),

cmds/inspect-tree-stats.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -442,7 +442,7 @@ static const char * const cmd_inspect_tree_stats_usage[] = {
442442
"",
443443
OPTLINE("-b", "raw numbers in bytes"),
444444
HELPINFO_UNITS_LONG,
445-
OPTLINE("-t <tree_id>", "print only tree with the given id (string or number)"),
445+
OPTLINE("-t TREEID", "print only tree with the given id (string or number)"),
446446
NULL
447447
};
448448

cmds/property.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -593,7 +593,7 @@ static const char * const cmd_property_get_usage[] = {
593593
"Possible values for type are: inode, subvol, filesystem, device.",
594594
"They can be abbreviated to the first letter, i/s/f/d",
595595
"",
596-
OPTLINE("-t <TYPE>", "list properties for the given object type (inode, subvol, filesystem, device)"),
596+
OPTLINE("-t TYPE", "list properties for the given object type (inode, subvol, filesystem, device)"),
597597
NULL
598598
};
599599

@@ -624,7 +624,7 @@ static const char * const cmd_property_set_usage[] = {
624624
"Set a property on a btrfs object where object is a path to file or",
625625
"directory and can also represent the filesystem or device based on the type",
626626
"",
627-
OPTLINE("-t <TYPE>", "list properties for the given object type (inode, subvol, filesystem, device)"),
627+
OPTLINE("-t TYPE", "list properties for the given object type (inode, subvol, filesystem, device)"),
628628
OPTLINE("-f", "force the change, could potentially break something"),
629629
NULL
630630
};
@@ -655,7 +655,7 @@ static const char * const cmd_property_list_usage[] = {
655655
"See the help of 'btrfs property get' for a description of",
656656
"objects and object types.",
657657
"",
658-
OPTLINE("-t <TYPE>", "list properties for the given object type (inode, subvol, filesystem, device)"),
658+
OPTLINE("-t TYPE", "list properties for the given object type (inode, subvol, filesystem, device)"),
659659
NULL
660660
};
661661

cmds/receive.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1648,7 +1648,7 @@ static const char * const cmd_receive_usage[] = {
16481648
"",
16491649
OPTLINE("-q, --quiet", "suppress all messages, except errors"),
16501650
OPTLINE("-f FILE", "read the stream from FILE instead of stdin"),
1651-
OPTLINE("-e", "terminate after receiving an <end cmd> marker in the stream. "
1651+
OPTLINE("-e", "terminate after receiving an \"end cmd\" marker in the stream. "
16521652
"Without this option the receiver side terminates only in case "
16531653
"of an error on end of file."),
16541654
OPTLINE("-C, --chroot", "confine the process to <mount> using chroot"),

cmds/rescue.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -283,7 +283,7 @@ static const char * const cmd_rescue_fix_data_checksum_usage[] = {
283283
"",
284284
OPTLINE("-r, --readonly", "readonly mode, only report errors without repair"),
285285
OPTLINE("-i, --interactive", "interactive mode, ignore the error by default."),
286-
OPTLINE("-m, --mirror <mirror>", "update csum item using specified mirror"),
286+
OPTLINE("-m, --mirror NUMBER", "update csum item using specified mirror"),
287287
HELPINFO_INSERT_GLOBALS,
288288
HELPINFO_INSERT_VERBOSE,
289289
NULL

cmds/restore.c

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1357,10 +1357,10 @@ static const char * const cmd_restore_usage[] = {
13571357
OPTLINE("-l, --list-roots", "list tree roots"),
13581358
"",
13591359
"Alternate starting point:",
1360-
OPTLINE("-f <bytenr>", "filesystem location"),
1361-
OPTLINE("-r, --root <rootid>", "root objectid"),
1362-
OPTLINE("-t <bytenr>", "tree location"),
1363-
OPTLINE("-u, --super <mirror>", "super mirror"),
1360+
OPTLINE("-f BYTENR", "filesystem location"),
1361+
OPTLINE("-r, --root ROOTID", "root objectid"),
1362+
OPTLINE("-t BYTENR", "tree location"),
1363+
OPTLINE("-u, --super NUMBER", "super mirror"),
13641364
"",
13651365
"Other:",
13661366
OPTLINE("-v, --verbose", "deprecated, alias for global -v option"),

cmds/send.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -475,9 +475,9 @@ static const char * const cmd_send_usage[] = {
475475
"clone sources itself.",
476476
"",
477477
OPTLINE("-e", "if sending multiple subvols at once, use the new format and omit the end-cmd between the subvols"),
478-
OPTLINE("-p <parent>", "send an incremental stream from <parent> to <subvol>"),
479-
OPTLINE("-c <clone-src>", "Use this snapshot as a clone source for an incremental send (multiple allowed)"),
480-
OPTLINE("-f <outfile>", "Output is normally written to stdout. To write to "
478+
OPTLINE("-p PARENTID", "send an incremental stream from PARENTID to <subvol>"),
479+
OPTLINE("-c CLONEID", "Use this snapshot as a clone source ID for an incremental send (multiple allowed)"),
480+
OPTLINE("-f FILE", "Output is normally written to stdout. To write to "
481481
"a file, use this option. An alternative would be to use pipes."),
482482
OPTLINE("--no-data", "send in NO_FILE_DATA mode, Note: the output stream "
483483
"does not contain any file data and thus cannot be used "

cmds/subvolume.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -134,7 +134,7 @@ static const char * const cmd_subvolume_create_usage[] = {
134134
"subvolume <name> will be created in the current directory. Options apply",
135135
"to all created subvolumes.",
136136
"",
137-
OPTLINE("-i <qgroupid>", "add the newly created subvolume(s) to a qgroup. This option can be given multiple times."),
137+
OPTLINE("-i QGROUPID", "add the newly created subvolume(s) to a qgroup. This option can be given multiple times."),
138138
OPTLINE("-p, --parents", "create any missing parent directories for each argument (like mkdir -p)"),
139139
HELPINFO_INSERT_GLOBALS,
140140
HELPINFO_INSERT_QUIET,
@@ -640,7 +640,7 @@ static const char * const cmd_subvolume_snapshot_usage[] = {
640640
"When only <subdir> is given, the subvolume will be named the basename of <subvolume>.",
641641
"",
642642
OPTLINE("-r", "make the new snapshot readonly"),
643-
OPTLINE("-i <qgroupid>", "Add the new snapshot to a qgroup (a quota group). This option can be given multiple times."),
643+
OPTLINE("-i QGROUPID", "Add the new snapshot to a qgroup (a quota group). This option can be given multiple times."),
644644
HELPINFO_INSERT_GLOBALS,
645645
HELPINFO_INSERT_QUIET,
646646
NULL
@@ -1711,7 +1711,7 @@ static const char * const cmd_subvolume_sync_usage[] = {
17111711
"are completed, but do not wait for subvolumes deleted meanwhile.",
17121712
"The status of subvolume ids is checked periodically.",
17131713
"",
1714-
OPTLINE("-s <N>", "sleep N seconds between checks (default: 1)"),
1714+
OPTLINE("-s NUMBER", "sleep N seconds between checks (default: 1)"),
17151715
NULL
17161716
};
17171717

0 commit comments

Comments
 (0)