diff --git a/man/vgsplit.8 b/man/vgsplit.8 index ec935fdac..739392789 100644 --- a/man/vgsplit.8 +++ b/man/vgsplit.8 @@ -9,8 +9,7 @@ vgsplit \- split a volume group into two .RB [ \-c | \-\-clustered " {" y | n }] .RB [ \-d | \-\-debug ] .RB [ \-h | \-\-help ] -.RB [ \-l | \-\-list ] -.RB [ \-\-maxlogicalvolumes +.RB [ \-l | \-\-maxlogicalvolumes .IR MaxLogicalVolumes ] .RB [ -M | \-\-metadatatype .IR type ] diff --git a/tools/commands.h b/tools/commands.h index 7a13270a9..c132a6dbf 100644 --- a/tools/commands.h +++ b/tools/commands.h @@ -878,7 +878,6 @@ xx(vgsplit, "\t[-c|--clustered {y|n}] " "\n" "\t[-d|--debug] " "\n" "\t[-h|--help] " "\n" - "\t[-l|--list]" "\n" "\t[-l|--maxlogicalvolumes MaxLogicalVolumes]" "\n" "\t[-M|--metadatatype 1|2] " "\n" "\t[-p|--maxphysicalvolumes MaxPhysicalVolumes] " "\n" @@ -889,7 +888,7 @@ xx(vgsplit, "\tSourceVolumeGroupName DestinationVolumeGroupName" "\n" "\tPhysicalVolumePath [PhysicalVolumePath...]\n", - alloc_ARG, autobackup_ARG, clustered_ARG, list_ARG, + alloc_ARG, autobackup_ARG, clustered_ARG, maxlogicalvolumes_ARG, maxphysicalvolumes_ARG, metadatatype_ARG, physicalextentsize_ARG, test_ARG) diff --git a/tools/lvmcmdline.c b/tools/lvmcmdline.c index 8c74c5a59..99a406fb1 100644 --- a/tools/lvmcmdline.c +++ b/tools/lvmcmdline.c @@ -584,6 +584,7 @@ static int _process_command_line(struct cmd_context *cmd, int *argc, a->ui64_value = 0; } + memset(str, 0, sizeof(str)); /* fill in the short and long opts */ for (i = 0; i < cmd->command->num_args; i++) _add_getopt_arg(cmd->command->valid_args[i], &ptr, &o);