From 2a434c479dfcff6bd43e9b29c7a6d4259658f47d Mon Sep 17 00:00:00 2001 From: Alasdair Kergon Date: Sun, 12 Feb 2012 21:37:03 +0000 Subject: [PATCH] missing error mesg --- lib/metadata/lv_manip.c | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/lib/metadata/lv_manip.c b/lib/metadata/lv_manip.c index f13a33f8b..ae9fc505e 100644 --- a/lib/metadata/lv_manip.c +++ b/lib/metadata/lv_manip.c @@ -3316,8 +3316,11 @@ int lv_remove_with_dependencies(struct cmd_context *cmd, struct logical_volume * 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\"",