]> sourceware.org Git - lvm2.git/commitdiff
vgsplit: restore check for thin pool external origin
authorDavid Teigland <teigland@redhat.com>
Wed, 27 Jul 2016 19:00:57 +0000 (14:00 -0500)
committerDavid Teigland <teigland@redhat.com>
Wed, 27 Jul 2016 19:00:57 +0000 (14:00 -0500)
Fix a regression from commit 4420d41f, in which the
check was skipped for splitting a thin pool and an
external origin.

tools/vgsplit.c

index 909a786df8aadcd26ff7b27d36e2d11e8d89b789..fd43650afd5e1bc54c398a8c2a95eadf18db22a8 100644 (file)
@@ -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) ||
This page took 0.037174 seconds and 5 git commands to generate.