1
0
mirror of git://sourceware.org/git/lvm2.git synced 2025-01-03 05:18: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:
Dave Wysochanski 2008-01-16 17:14:56 +00:00
parent 5f3a3e312c
commit 6ab424acda
3 changed files with 3 additions and 4 deletions

View File

@ -9,8 +9,7 @@ vgsplit \- split a volume group into two
.RB [ \-c | \-\-clustered " {" y | n }] .RB [ \-c | \-\-clustered " {" y | n }]
.RB [ \-d | \-\-debug ] .RB [ \-d | \-\-debug ]
.RB [ \-h | \-\-help ] .RB [ \-h | \-\-help ]
.RB [ \-l | \-\-list ] .RB [ \-l | \-\-maxlogicalvolumes
.RB [ \-\-maxlogicalvolumes
.IR MaxLogicalVolumes ] .IR MaxLogicalVolumes ]
.RB [ -M | \-\-metadatatype .RB [ -M | \-\-metadatatype
.IR type ] .IR type ]

View File

@ -878,7 +878,6 @@ xx(vgsplit,
"\t[-c|--clustered {y|n}] " "\n" "\t[-c|--clustered {y|n}] " "\n"
"\t[-d|--debug] " "\n" "\t[-d|--debug] " "\n"
"\t[-h|--help] " "\n" "\t[-h|--help] " "\n"
"\t[-l|--list]" "\n"
"\t[-l|--maxlogicalvolumes MaxLogicalVolumes]" "\n" "\t[-l|--maxlogicalvolumes MaxLogicalVolumes]" "\n"
"\t[-M|--metadatatype 1|2] " "\n" "\t[-M|--metadatatype 1|2] " "\n"
"\t[-p|--maxphysicalvolumes MaxPhysicalVolumes] " "\n" "\t[-p|--maxphysicalvolumes MaxPhysicalVolumes] " "\n"
@ -889,7 +888,7 @@ xx(vgsplit,
"\tSourceVolumeGroupName DestinationVolumeGroupName" "\n" "\tSourceVolumeGroupName DestinationVolumeGroupName" "\n"
"\tPhysicalVolumePath [PhysicalVolumePath...]\n", "\tPhysicalVolumePath [PhysicalVolumePath...]\n",
alloc_ARG, autobackup_ARG, clustered_ARG, list_ARG, alloc_ARG, autobackup_ARG, clustered_ARG,
maxlogicalvolumes_ARG, maxphysicalvolumes_ARG, maxlogicalvolumes_ARG, maxphysicalvolumes_ARG,
metadatatype_ARG, physicalextentsize_ARG, test_ARG) metadatatype_ARG, physicalextentsize_ARG, test_ARG)

View File

@ -584,6 +584,7 @@ static int _process_command_line(struct cmd_context *cmd, int *argc,
a->ui64_value = 0; a->ui64_value = 0;
} }
memset(str, 0, sizeof(str));
/* fill in the short and long opts */ /* fill in the short and long opts */
for (i = 0; i < cmd->command->num_args; i++) for (i = 0; i < cmd->command->num_args; i++)
_add_getopt_arg(cmd->command->valid_args[i], &ptr, &o); _add_getopt_arg(cmd->command->valid_args[i], &ptr, &o);