mirror of
git://sourceware.org/git/lvm2.git
synced 2025-01-02 01:18:26 +03:00
cleanup: use exiting function
Reuse existing code and some indent change.
This commit is contained in:
parent
fecd043cca
commit
0f98d5c2e6
@ -1464,14 +1464,9 @@ int lv_raid_split(struct logical_volume *lv, const char *split_name,
|
||||
/*
|
||||
* Eliminate the residual LVs
|
||||
*/
|
||||
dm_list_iterate_items(lvl, &removal_lvs) {
|
||||
if (!deactivate_lv(cmd, lvl->lv))
|
||||
if (!_deactivate_and_remove_lvs(lv->vg, &removal_lvs))
|
||||
return_0;
|
||||
|
||||
if (!lv_remove(lvl->lv))
|
||||
return_0;
|
||||
}
|
||||
|
||||
if (!vg_write(lv->vg) || !vg_commit(lv->vg))
|
||||
return_0;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user