master - debug: add missing stack trace on error path
Gitweb: http://git.fedorahosted.org/git/?p=lvm2.git;a=commitdiff;h=ad376e9e00eaa453e7d8ba1ffdc763345ec49d0e Commit: ad376e9e00eaa453e7d8ba1ffdc763345ec49d0e Parent: c10c16cc3531cf613152675b732a50b1339e62c9 Author: Zdenek Kabelac <[email protected]> AuthorDate: Thu Sep 11 20:11:44 2014 +0200 Committer: Zdenek Kabelac <[email protected]> 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(-)
lib/metadata/raid_manip.c +2 -2
@@ -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, ¬_capable) || not_capable) -return 0 ; + return_0;if (!for_each_sub_lv (lv, _lv_may_be_activated_in_degraded_mode, ¬_capable)) {log_error (INTERNAL_ERROR "for_each_sub_lv failure." );