1
0
mirror of git://sourceware.org/git/lvm2.git synced 2024-12-22 17:35:59 +03:00

Fix a bad return code in 'lvconvert_raid'

Functions at this level do return 0 or 1, not ECMD_* values.
This commit is contained in:
Jonathan Earl Brassow 2012-02-22 15:20:50 +00:00
parent b1e320e5c4
commit 65f96d99e5

View File

@ -1528,10 +1528,9 @@ static int lvconvert_raid(struct logical_volume *lv, struct lvconvert_params *lp
_lvconvert_raid_repair_ask(cmd, &replace);
if (replace) {
if (!(failed_pvs = _failed_pv_list(lv->vg))) {
stack;
return ECMD_FAILED;
}
if (!(failed_pvs = _failed_pv_list(lv->vg)))
return_0;
return lv_raid_replace(lv, failed_pvs, lp->pvh);
}