1
0
mirror of git://sourceware.org/git/lvm2.git synced 2024-12-21 13:34:40 +03:00

lvresize: poolmetadatasize cannot use minus

This commit is contained in:
David Teigland 2017-03-09 09:49:33 -06:00
parent 6dfe1ce251
commit aa31272223
2 changed files with 4 additions and 4 deletions

View 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,

View 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;
}