summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDavid Teigland <teigland@redhat.com>2017-02-06 16:10:09 -0600
committerDavid Teigland <teigland@redhat.com>2017-02-06 16:10:33 -0600
commit690abbad4222e92d93aebae2933f0812918cc2bc (patch)
tree433b87fdd76d9b6d334abc75f2e0428b13b77b10
parentb49a93a1187e0dba1618b562948c0ede1f81d0af (diff)
downloadlvm2-dev-dct-cmd-defs75.tar.gz
vgchange: fix uint32 parsing of logicalvolume argdev-dct-cmd-defs75
-rw-r--r--tools/args.h4
-rw-r--r--tools/command-lines.in15
2 files changed, 5 insertions, 14 deletions
diff --git a/tools/args.h b/tools/args.h
index 1d7d6f7fa..a481bc523 100644
--- a/tools/args.h
+++ b/tools/args.h
@@ -964,10 +964,10 @@ arg(stripesize_ARG, 'I', "stripesize", sizekb_VAL, 0, 0,
"The amount of data that is written to one device before\n"
"moving to the next in a striped LV.\n")
-arg(logicalvolume_ARG, 'l', "logicalvolume", number_VAL, 0, 0,
+arg(logicalvolume_ARG, 'l', "logicalvolume", uint32_VAL, 0, 0,
"Sets the maximum number of LVs allowed in a VG.\n")
-arg(maxlogicalvolumes_ARG, 'l', "maxlogicalvolumes", number_VAL, 0, 0,
+arg(maxlogicalvolumes_ARG, 'l', "maxlogicalvolumes", uint32_VAL, 0, 0,
"Sets the maximum number of LVs allowed in a VG.\n")
arg(extents_ARG, 'l', "extents", numsignedper_VAL, 0, 0,
diff --git a/tools/command-lines.in b/tools/command-lines.in
index 4cc51fea4..501c9c3ee 100644
--- a/tools/command-lines.in
+++ b/tools/command-lines.in
@@ -1,13 +1,4 @@
#
-# When this file is changed, tools/command-lines.h
-# and tools/command-lines-count.h must be regenerated
-# with:
-#
-# tools/create-commands --output count tools/command-lines.in > tools/command-lines-count.h
-# tools/create-commands --output struct tools/command-lines.in > tools/command-lines.h
-#
-
-#
# Syntax
#
# A new command has a unique combination of:
@@ -1336,7 +1327,7 @@ OO_VGCHANGE: --autobackup Bool, --ignoremonitoring, --ignoreskippedcluster,
# because it can function as a required opt.
OO_VGCHANGE_META: --addtag Tag, --deltag Tag,
---logicalvolume Number, --maxphysicalvolumes Uint32, --alloc Alloc, --uuid,
+--logicalvolume Uint32, --maxphysicalvolumes Uint32, --alloc Alloc, --uuid,
--clustered Bool, --pvmetadatacopies MetadataCopiesPV, --vgmetadatacopies MetadataCopiesVG,
--physicalextentsize SizeMB, --resizeable Bool, --systemid String, --locktype LockType,
--profile String, --detachprofile, --metadataprofile String
@@ -1402,7 +1393,7 @@ ID: vgconvert_general
---
vgcreate VG_new PV ...
-OO: --addtag Tag, --alloc Alloc, --autobackup Bool, --clustered Bool, --maxlogicalvolumes Number,
+OO: --addtag Tag, --alloc Alloc, --autobackup Bool, --clustered Bool, --maxlogicalvolumes Uint32,
--maxphysicalvolumes Uint32, --metadataprofile String, --metadatatype MetadataType,
--physicalextentsize SizeMB, --force, --zero Bool, --labelsector Number,
--metadatasize SizeMB, --pvmetadatacopies MetadataCopiesPV, --vgmetadatacopies MetadataCopiesVG,
@@ -1536,7 +1527,7 @@ OO_VGSPLIT: --autobackup Bool
# used only when the destination VG is new
OO_VGSPLIT_NEW: --alloc Alloc, --clustered Bool,
---maxlogicalvolumes Number, --maxphysicalvolumes Uint32,
+--maxlogicalvolumes Uint32, --maxphysicalvolumes Uint32,
--metadatatype MetadataType, --vgmetadatacopies MetadataCopiesVG
vgsplit VG VG PV ...