[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

[lvm-devel] LVM2/tools lvcreate.c



CVSROOT:	/cvs/lvm2
Module name:	LVM2
Changes by:	zkabelac sourceware org	2011-09-07 09:25:51

Modified files:
	tools          : lvcreate.c 

Log message:
	Check if lp.origin exists
	
	Currently needed for _determine_snapshot_type().

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

--- LVM2/tools/lvcreate.c	2011/09/06 22:43:58	1.238
+++ LVM2/tools/lvcreate.c	2011/09/07 09:25:51	1.239
@@ -896,7 +896,7 @@
 		return ECMD_FAILED;
 	}
 
-	if (lp.snapshot && !_determine_snapshot_type(vg, &lp)) {
+	if (lp.snapshot && lp.origin && !_determine_snapshot_type(vg, &lp)) {
 		r = ECMD_FAILED;
 		goto_out;
 	}


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]