Skip to contentSkip to conversation

LVM2 tools/lvconvert.c ./WHATS_NEW

PATCH [email protected] 1 participant 1 message Feb 6, 2010

lore
Share & tools
lore
#0 lore raw

CVSROOT: /cvs/lvm2
Module name: LVM2
Changes by: mornfall at sourceware.org 2010-02-06 07:44:16

Modified files:
tools : lvconvert.c
. : WHATS_NEW

Log message:
Make lvconvert --repair --use-policies exit with success when no action is needed.

Patches:
http://sourceware.org/cgi-bin/cvsweb.cgi/LVM2/tools/lvconvert.c.diff?cvsroot=lvm2&r1=1.119&r2=1.120
http://sourceware.org/cgi-bin/cvsweb.cgi/LVM2/WHATS_NEW.diff?cvsroot=lvm2&r1=1.1422&r2=1.1423

tools/lvconvert.c +2 -0
@@ -1247,6 +1247,8 @@
 	}
 
 	if (arg_count(cmd, repair_ARG) && !(lv->status & MIRRORED)) {
+		if (arg_count(cmd, use_policies_ARG))
+			return ECMD_PROCESSED; /* nothing to be done here */
 		log_error("Can't repair non-mirrored LV \"%s\".", lv->name);
 		return ECMD_FAILED;
 	}
WHATS_NEW +1 -0
@@ -1,5 +1,6 @@
 Version 2.02.61 - 
 ===================================
+  Make lvconvert --repair --use-policies exit with success when no action is needed.
   Add multiple snapshot lv 'lvconvert --merge @tag' support via process_each_lv().
   Fix inappropriate second resync when adding mimage to core-logged mirror.
   Exclude internal VG names and uuids in lists returned via liblvm interface.