};
int r = ECMD_FAILED;
- if (!_do_info_and_status(cmd, lv, NULL, &status, do_info, do_status)) {
- stack;
- return r;
- }
+ if (!_do_info_and_status(cmd, lv, NULL, &status, do_info, do_status))
+ goto_out;
if (!report_object(handle, lv->vg, lv, NULL, NULL, NULL,
&status, NULL))
};
int r = ECMD_FAILED;
- if (!_do_info_and_status(cmd, seg->lv, seg, &status, do_info, do_status)) {
- stack;
- return r;
- }
+ if (!_do_info_and_status(cmd, seg->lv, seg, &status, do_info, do_status))
+ goto_out;
if (!report_object(handle, seg->lv->vg, seg->lv, NULL, seg, NULL,
&status, NULL))
.lv = &_free_logical_volume
};
- if (seg)
- _do_info_and_status(cmd, seg->lv, seg, &status, do_info, do_status);
+ if (seg && !_do_info_and_status(cmd, seg->lv, seg, &status, do_info, do_status))
+ goto_out;
if (!report_object(handle, vg, seg ? seg->lv : &_free_logical_volume, pvseg->pv,
seg ? : &_free_lv_segment, pvseg, &status,