mirror of
git://sourceware.org/git/lvm2.git
synced 2025-01-18 10:04:20 +03:00
debug: add missing stack trace on error path
This commit is contained in:
parent
c10c16cc35
commit
ad376e9e00
@ -1238,7 +1238,7 @@ int lv_raid_split_and_track(struct logical_volume *lv,
|
|||||||
|
|
||||||
/* Activate the split (and tracking) LV */
|
/* Activate the split (and tracking) LV */
|
||||||
if (!_activate_sublv_preserving_excl(lv, seg_lv(seg, s)))
|
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",
|
log_print_unless_silent("Use 'lvconvert --merge %s/%s' to merge back into %s",
|
||||||
lv->vg->name, seg_lv(seg, s)->name, lv->name);
|
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;
|
int not_capable = 0;
|
||||||
|
|
||||||
if (!_lv_may_be_activated_in_degraded_mode(lv, ¬_capable) || not_capable)
|
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)) {
|
if (!for_each_sub_lv(lv, _lv_may_be_activated_in_degraded_mode, ¬_capable)) {
|
||||||
log_error(INTERNAL_ERROR "for_each_sub_lv failure.");
|
log_error(INTERNAL_ERROR "for_each_sub_lv failure.");
|
||||||
|
Loading…
x
Reference in New Issue
Block a user