summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDavid Teigland <teigland@redhat.com>2017-02-17 14:02:13 -0600
committerDavid Teigland <teigland@redhat.com>2017-02-17 14:44:11 -0600
commit10cb8e0ec08d430d697fb8a58caaefb5aea32928 (patch)
treeaa1c1899a6de9fe47f598200e6fe546fead3effb
parent3cf394389896a1bd6b3780671e6a6654a925bdd3 (diff)
downloadlvm2-10cb8e0ec08d430d697fb8a58caaefb5aea32928.tar.gz
man/help: show recently added r|R unit
-rw-r--r--tools/args.h11
-rw-r--r--tools/vals.h2
2 files changed, 8 insertions, 5 deletions
diff --git a/tools/args.h b/tools/args.h
index 149b5f66a..1f3ace734 100644
--- a/tools/args.h
+++ b/tools/args.h
@@ -672,10 +672,13 @@ arg(unconfigured_ARG, '\0', "unconfigured", 0, 0, 0,
"Internal option used for generating config file during build.\n")
arg(units_ARG, '\0', "units", units_VAL, 0, 0,
- "All sizes are output in these units: (h)uman-readable, (b)ytes, (s)ectors,\n"
- "(k)ilobytes, (m)egabytes, (g)igabytes, (t)erabytes, (p)etabytes, (e)xabytes.\n"
- "Capitalise to use multiples of 1000 (S.I.) instead of 1024. Can also specify\n"
- "custom units e.g. --units 3M.\n")
+ "All sizes are output in these units:\n"
+ "human-(r)eadable with rounding,\n"
+ "(h)uman-readable, (b)ytes, (s)ectors, (k)ilobytes, (m)egabytes,\n"
+ "(g)igabytes, (t)erabytes, (p)etabytes, (e)xabytes.\n"
+ "Capitalise to use multiples of 1000 (S.I.) instead of 1024.\n"
+ "Custom units can be specified, e.g. --units 3M.\n"
+ "r|R rounds numbers and displays the '<' prefix before rounded values.\n")
arg(unquoted_ARG, '\0', "unquoted", 0, 0, 0,
"When used with --nameprefixes, output values in the field=value\n"
diff --git a/tools/vals.h b/tools/vals.h
index d9b0064c6..88c446e50 100644
--- a/tools/vals.h
+++ b/tools/vals.h
@@ -122,7 +122,7 @@ val(numsigned_VAL, int_arg_with_sign, "SNumber", "[+|-]Number")
val(numsignedper_VAL, int_arg_with_sign_and_percent, "SNumberP", "[+|-]Number[%VG|%PVS|%FREE]")
val(permission_VAL, permission_arg, "Permission", "rw|r")
val(metadatatype_VAL, metadatatype_arg, "MetadataType", "lvm2|lvm1")
-val(units_VAL, string_arg, "Units", "h|H|b|B|s|S|k|K|m|M|g|G|t|T|p|P|e|E")
+val(units_VAL, string_arg, "Units", "r|R|h|H|b|B|s|S|k|K|m|M|g|G|t|T|p|P|e|E")
val(segtype_VAL, segtype_arg, "SegType", "linear|striped|snapshot|mirror|raid*|thin|cache|thin-pool|cache-pool")
val(alloc_VAL, alloc_arg, "Alloc", "contiguous|cling|cling_by_tags|normal|anywhere|inherit")
val(locktype_VAL, locktype_arg, "LockType", "sanlock|dlm|none")