mirror of
git://sourceware.org/git/lvm2.git
synced 2024-12-22 17:35:59 +03:00
vgsplit: restore check for thin pool external origin
Fix a regression from commit 4420d41f
, in which the
check was skipped for splitting a thin pool and an
external origin.
This commit is contained in:
parent
17fb64b569
commit
ea90a3d622
@ -331,7 +331,8 @@ 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) &&
|
||||||
|
!lv_is_on_pvs(seg->external_lv, &vg_to->pvs))
|
||||||
continue;
|
continue;
|
||||||
|
|
||||||
if ((_lv_is_in_vg(vg_to, data_lv) ||
|
if ((_lv_is_in_vg(vg_to, data_lv) ||
|
||||||
|
Loading…
Reference in New Issue
Block a user