Skip to contentSkip to conversation

master - lv_manip: add name of failing LV into error message

PATCH Zdenek Kabelac 1 participant 1 message Jul 2, 2018

lore
Share & tools
lore
#0 lore raw
Gitweb:        https://sourceware.org/git/?p=lvm2.git;a=commitdiff;h=2bb9627d01dc138c56d0262f918462324782d3c7
Commit:        2bb9627d01dc138c56d0262f918462324782d3c7
Parent:        ed3428b7ed5386b508e76a403f2b11c5903d3d0f
Author:        Zdenek Kabelac <[email protected]>
AuthorDate:    Fri Jun 29 17:26:01 2018 +0200
Committer:     Zdenek Kabelac <[email protected]>
CommitterDate: Mon Jul 2 10:24:23 2018 +0200

lv_manip: add name of failing LV into error message

---
 lib/metadata/lv_manip.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
lib/metadata/lv_manip.c +1 -1
index 7b68313..fc55c98 100644
@@ -7865,7 +7865,7 @@ static struct logical_volume *_lv_create_an_lv(struct volume_group *vg,
 		}
 		lv->status &= ~LV_TEMPORARY;
 	} else if (!lv_active_change(cmd, lv, lp->activate)) {
-		log_error("Failed to activate new LV.");
+		log_error("Failed to activate new LV %s.", display_lvname(lv));
 		goto deactivate_and_revert_new_lv;
 	}