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

[lvm-devel] LVM2/tools lvconvert.c



CVSROOT:	/cvs/lvm2
Module name:	LVM2
Changes by:	jbrassow sourceware org	2010-04-28 17:41:31

Modified files:
	tools          : lvconvert.c 

Log message:
	Don't attempt to convert the log type of an LV if the LV
	is not a mirror.

Patches:
http://sourceware.org/cgi-bin/cvsweb.cgi/LVM2/tools/lvconvert.c.diff?cvsroot=lvm2&r1=1.132&r2=1.133

--- LVM2/tools/lvconvert.c	2010/04/26 18:31:58	1.132
+++ LVM2/tools/lvconvert.c	2010/04/28 17:41:30	1.133
@@ -1074,7 +1074,7 @@
 	/*
 	 * Converting the log type
 	 */
-	if (old_log_count != new_log_count) {
+	if ((lv->status & MIRRORED) && (old_log_count != new_log_count)) {
 		if (!_lv_update_log_type(cmd, lp, lv,
 					 operable_pvs, new_log_count)) {
 			stack;


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