Skip to contentSkip to conversation

LVM2/tools lvconvert.c

PATCH [email protected] 1 participant 1 message Apr 28, 2010

lore
Share & tools
lore
#0 lore raw

CVSROOT: /cvs/lvm2
Module name: LVM2
Changes by: jbrassow at 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

tools/lvconvert.c +1 -1
@@ -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;