From 96b2c20991b83a01157f8aea4d05f1dc911f603d Mon Sep 17 00:00:00 2001 From: Zdenek Kabelac Date: Mon, 17 Jul 2023 12:44:04 +0200 Subject: [PATCH] debug: add backtrace --- lib/activate/activate.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/lib/activate/activate.c b/lib/activate/activate.c index 9f1ebf4fc..3a7b0ddd5 100644 --- a/lib/activate/activate.c +++ b/lib/activate/activate.c @@ -2732,7 +2732,7 @@ static int _lv_remove_any_missing_subdevs(struct logical_volume *lv) if (dm_snprintf(name, sizeof(name), "%s-%s-missing_%u_0", seg->lv->vg->name, seg->lv->name, seg_no) < 0) return_0; if (!_remove_dm_dev_by_name(name)) - return 0; + return_0; seg_no++; } @@ -2750,10 +2750,10 @@ int lv_deactivate_any_missing_subdevs(const struct logical_volume *lv) for (s = 0; s < seg->area_count; s++) { if (seg_type(seg, s) == AREA_LV && !_lv_remove_any_missing_subdevs(seg_lv(seg, s))) - return 0; + return_0; if (seg->meta_areas && seg_metatype(seg, s) == AREA_LV && !_lv_remove_any_missing_subdevs(seg_metalv(seg, s))) - return 0; + return_0; } return 1;