[lvm-devel] dev-dct-process-latest - debug: add missing stack trace on error path

David Teigland teigland at fedoraproject.org
Mon Sep 22 15:37:55 UTC 2014


Gitweb:        http://git.fedorahosted.org/git/?p=lvm2.git;a=commitdiff;h=ad376e9e00eaa453e7d8ba1ffdc763345ec49d0e
Commit:        ad376e9e00eaa453e7d8ba1ffdc763345ec49d0e
Parent:        c10c16cc3531cf613152675b732a50b1339e62c9
Author:        Zdenek Kabelac <zkabelac at redhat.com>
AuthorDate:    Thu Sep 11 20:11:44 2014 +0200
Committer:     Zdenek Kabelac <zkabelac at redhat.com>
CommitterDate: Fri Sep 12 13:51:29 2014 +0200

debug: add missing stack trace on error path

---
 lib/metadata/raid_manip.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/lib/metadata/raid_manip.c b/lib/metadata/raid_manip.c
index 6edd56d..d0740e8 100644
--- a/lib/metadata/raid_manip.c
+++ b/lib/metadata/raid_manip.c
@@ -1238,7 +1238,7 @@ int lv_raid_split_and_track(struct logical_volume *lv,
 
 	/* Activate the split (and tracking) LV */
 	if (!_activate_sublv_preserving_excl(lv, seg_lv(seg, s)))
-		return 0;
+		return_0;
 
 	log_print_unless_silent("Use 'lvconvert --merge %s/%s' to merge back into %s",
 				lv->vg->name, seg_lv(seg, s)->name, lv->name);
@@ -1907,7 +1907,7 @@ int partial_raid_lv_supports_degraded_activation(struct logical_volume *lv)
 	int not_capable = 0;
 
 	if (!_lv_may_be_activated_in_degraded_mode(lv, &not_capable) || not_capable)
-		return 0;
+		return_0;
 
 	if (!for_each_sub_lv(lv, _lv_may_be_activated_in_degraded_mode, &not_capable)) {
 		log_error(INTERNAL_ERROR "for_each_sub_lv failure.");




More information about the lvm-devel mailing list