diff --git a/tools/command-lines.in b/tools/command-lines.in index 150f57267..3a449ef8d 100644 --- a/tools/command-lines.in +++ b/tools/command-lines.in @@ -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, diff --git a/tools/command.c b/tools/command.c index 1f314689d..88b7216e9 100644 --- a/tools/command.c +++ b/tools/command.c @@ -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; }