1
0
mirror of git://sourceware.org/git/lvm2.git synced 2025-01-03 05:18:29 +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 daa0000a47
commit 972282bfbc

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);
}