Skip to contentSkip to conversation

LVM2 man/vgsplit.8 tools/commands.h tools/lvmc ...

PATCH [email protected] 1 participant 1 message Jan 16, 2008

lore
Share & tools
lore
#0 lore raw

CVSROOT: /cvs/lvm2
Module name: LVM2
Changes by: wysochanski at sourceware.org 2008-01-16 17:14:56

Modified files:
man : vgsplit.8
tools : commands.h lvmcmdline.c

Log message:
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(-)

Patches:
http://sourceware.org/cgi-bin/cvsweb.cgi/LVM2/man/vgsplit.8.diff?cvsroot=lvm2&r1=1.4&r2=1.5
http://sourceware.org/cgi-bin/cvsweb.cgi/LVM2/tools/commands.h.diff?cvsroot=lvm2&r1=1.106&r2=1.107
http://sourceware.org/cgi-bin/cvsweb.cgi/LVM2/tools/lvmcmdline.c.diff?cvsroot=lvm2&r1=1.57&r2=1.58

man/vgsplit.8 +1 -2
@@ -9,8 +9,7 @@
 .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 ]
tools/commands.h +1 -2
@@ -878,7 +878,6 @@
    "\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 @@
    "\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)
 
tools/lvmcmdline.c +1 -0
@@ -584,6 +584,7 @@
 		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);