mirror of
git://sourceware.org/git/lvm2.git
synced 2025-01-19 14:04:17 +03:00
vgsplit: fix regression processing thin external origins
a579ba2ac27d fixed a regression causing a segfault if no external origin existed but broke the logic leading to erroneous error messages and creations of split off exported VGs in case the external origin and the pool LVs were allocated on different PVs. - resolves rhbz1367459
This commit is contained in:
parent
73df2aedf9
commit
c0a0eedf2e
@ -331,7 +331,7 @@ static int _move_thins(struct volume_group *vg_from,
|
|||||||
data_lv = seg_lv(first_seg(seg->pool_lv), 0);
|
data_lv = seg_lv(first_seg(seg->pool_lv), 0);
|
||||||
|
|
||||||
/* Ignore, if no allocations on PVs of @vg_to */
|
/* Ignore, if no allocations on PVs of @vg_to */
|
||||||
if (!lv_is_on_pvs(data_lv, &vg_to->pvs) ||
|
if (!lv_is_on_pvs(data_lv, &vg_to->pvs) &&
|
||||||
(seg->external_lv && !lv_is_on_pvs(seg->external_lv, &vg_to->pvs)))
|
(seg->external_lv && !lv_is_on_pvs(seg->external_lv, &vg_to->pvs)))
|
||||||
continue;
|
continue;
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user