From: David Teigland Date: Wed, 27 Jul 2016 19:00:57 +0000 (-0500) Subject: vgsplit: restore check for thin pool external origin X-Git-Tag: v2_02_162~10 X-Git-Url: https://sourceware.org/git/?a=commitdiff_plain;h=ea90a3d622319fd15a3e85d772b25cd352a3544b;p=lvm2.git 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. --- diff --git a/tools/vgsplit.c b/tools/vgsplit.c index 909a786df..fd43650af 100644 --- a/tools/vgsplit.c +++ b/tools/vgsplit.c @@ -331,7 +331,8 @@ static int _move_thins(struct volume_group *vg_from, data_lv = seg_lv(first_seg(seg->pool_lv), 0); /* 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; if ((_lv_is_in_vg(vg_to, data_lv) ||