[lvm-devel] LVM2/tools lvcreate.c

jbrassow at sourceware.org jbrassow at sourceware.org
Tue May 11 21:40:12 UTC 2010


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

--- LVM2/tools/lvcreate.c	2010/04/29 01:38:14	1.221
+++ LVM2/tools/lvcreate.c	2010/05/11 21:40:11	1.222
@@ -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;




More information about the lvm-devel mailing list