]> sourceware.org Git - lvm2.git/commitdiff
lvresize: poolmetadatasize cannot use minus
authorDavid Teigland <teigland@redhat.com>
Thu, 9 Mar 2017 15:49:33 +0000 (09:49 -0600)
committerDavid Teigland <teigland@redhat.com>
Thu, 9 Mar 2017 15:51:24 +0000 (09:51 -0600)
tools/command-lines.in
tools/command.c

index 150f572671c9b3b26d970ed2c0af101551cc7690..3a449ef8da1b5e1118e8b881a736f692b1d5c310 100644 (file)
@@ -1221,7 +1221,7 @@ ID: lvrename_lv_lv
 lvresize --size SSizeMB LV
 OO: --alloc Alloc, --autobackup Bool, --force,
 --nofsck, --nosync, --noudevsync, --reportformat ReportFmt, --resizefs,
---stripes Number, --stripesize SizeKB, --poolmetadatasize SSizeMB,
+--stripes Number, --stripesize SizeKB, --poolmetadatasize PSizeMB,
 --type SegType
 OP: PV ...
 ID: lvresize_by_size
@@ -1235,7 +1235,7 @@ OO: --alloc Alloc, --autobackup Bool, --force,
 ID: lvresize_by_pv
 DESC: Resize an LV by specified PV extents.
 
-lvresize --poolmetadatasize SSizeMB LV_thinpool
+lvresize --poolmetadatasize PSizeMB LV_thinpool
 OO: --alloc Alloc, --autobackup Bool, --force,
 --nofsck, --nosync, --noudevsync,
 --reportformat ReportFmt, --stripes Number, --stripesize SizeKB,
index 1f314689d0326ee79ee9dc1638137f537b01e949..88b7216e9f9ee9fce10ae6e2a0f8762da5026fa8 100644 (file)
@@ -1534,10 +1534,10 @@ int define_commands(char *run_name)
 void configure_command_option_values(const char *name)
 {
        if (!strcmp(name, "lvresize")) {
-               /* relative +|- allowed */
+               /* relative +|- allowed for LV, + allowed for metadata */
                opt_names[size_ARG].val_enum = ssizemb_VAL;
                opt_names[extents_ARG].val_enum = sextents_VAL;
-               opt_names[poolmetadatasize_ARG].val_enum = ssizemb_VAL;
+               opt_names[poolmetadatasize_ARG].val_enum = psizemb_VAL;
                return;
        }
 
This page took 0.046157 seconds and 5 git commands to generate.