Skip to contentSkip to conversation

LVM2 ./WHATS_NEW tools/lvcreate.c

PATCH [email protected] 1 participant 1 message Sep 24, 2008

lore
Share & tools
lore
#0 lore raw

CVSROOT: /cvs/lvm2
Module name: LVM2
Changes by: mbroz at sourceware.org 2008-09-24 16:32:51

Modified files:
. : WHATS_NEW
tools : lvcreate.c

Log message:
Fix validation of --minor and --major in lvcreate to require -My always.

Patches:
http://sourceware.org/cgi-bin/cvsweb.cgi/LVM2/WHATS_NEW.diff?cvsroot=lvm2&r1=1.964&r2=1.965
http://sourceware.org/cgi-bin/cvsweb.cgi/LVM2/tools/lvcreate.c.diff?cvsroot=lvm2&r1=1.176&r2=1.177

WHATS_NEW +1 -0
@@ -1,5 +1,6 @@
 Version 2.02.41 -
 =====================================
+  Fix validation of --minor and --major in lvcreate to require -My always.
   Fix release: clvmd build, vgreduce consolidate & tests, /dev/ioerror warning.
 
 Version 2.02.40 - 19th September 2008
tools/lvcreate.c +3 -0
@@ -500,6 +500,9 @@
 				return 0;
 			}
 		}
+	} else if (arg_count(cmd, minor_ARG) || arg_count(cmd, major_ARG)) {
+		log_error("--major and --minor require -My");
+		return 0;
 	}
 
 	lp->pv_count = argc;