Skip to contentSkip to conversation

LVM2/tools lvcreate.c

PATCH [email protected] 1 participant 1 message May 11, 2010

lore
Share & tools
lore
#0 lore raw

CVSROOT: /cvs/lvm2
Module name: LVM2
Changes by: jbrassow at sourceware.org 2010-05-11 21:40:12

Modified files:
tools : lvcreate.c

Log message:
If we are checking if '--nosync' was called with the mirror argument, then let's also check if '--mirrorlog' was called with the mirror argument.

Patches:
http://sourceware.org/cgi-bin/cvsweb.cgi/LVM2/tools/lvcreate.c.diff?cvsroot=lvm2&r1=1.221&r2=1.222

tools/lvcreate.c +5 -0
@@ -394,6 +394,11 @@
 			return 0;
 		}
 
+		if (arg_count(cmd, mirrorlog_ARG)) {
+			log_error("--mirrorlog is only available with mirrors");
+			return 0;
+		}
+
 		if (arg_count(cmd, nosync_ARG)) {
 			log_error("--nosync is only available with mirrors");
 			return 0;