mirror of
git://sourceware.org/git/lvm2.git
synced 2024-12-23 21:35:29 +03:00
Remove unused 'list' param from vgsplit - conflict with maxlogicalvolumes param.
Initialize lvm command getopt buffer to zero before building options string. Bugzilla: bz251992 --- man/vgsplit.8 | 3 +-- tools/commands.h | 3 +-- tools/lvmcmdline.c | 1 + 3 files changed, 3 insertions(+), 4 deletions(-)
This commit is contained in:
parent
16d22d404a
commit
8d7b6c6905
@ -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 ]
|
||||
|
@ -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)
|
||||
|
||||
|
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user