Skip to contentSkip to conversation

LVM2/lib/metadata lv_manip.c

PATCH [email protected] 1 participant 1 message Feb 12, 2012

lore
Share & tools
lore
#0 lore raw

CVSROOT: /cvs/lvm2
Module name: LVM2
Changes by: agk at sourceware.org 2012-02-12 21:37:03

Modified files:
lib/metadata : lv_manip.c

Log message:
missing error mesg

Patches:
http://sourceware.org/cgi-bin/cvsweb.cgi/LVM2/lib/metadata/lv_manip.c.diff?cvsroot=lvm2&r1=1.359&r2=1.360

lib/metadata/lv_manip.c +5 -2
@@ -3316,8 +3316,11 @@
 		if (lv_is_merging_cow(lv) && !level) {
 			if (lv_info(lv->vg->cmd, lv, 0, &info, 1, 0) &&
 			    info.exists && info.live_table) {
-				if (!lv_snapshot_percent(lv, &snap_percent))
-					return_0;
+				if (!lv_snapshot_percent(lv, &snap_percent)) {
+					log_error("Failed to obtain merging snapshot progress percentage for logical volume %s.",
+						  lv->name);
+					return 0;
+				}
 				if ((snap_percent != PERCENT_INVALID) &&
 				     (snap_percent != PERCENT_MERGE_FAILED)) {
 					log_error("Can't remove merging snapshot logical volume \"%s\"",