]> sourceware.org Git - lvm2.git/commitdiff
pvmove: Ability to move thin volumes
authorJonathan Brassow <jbrassow@redhat.com>
Fri, 23 Aug 2013 14:13:14 +0000 (09:13 -0500)
committerJonathan Brassow <jbrassow@redhat.com>
Fri, 23 Aug 2013 14:13:14 +0000 (09:13 -0500)
The previous commit was missing the code to allow moving thin
volumes.

tools/pvmove.c

index 34adc6d80ea7f69ff543081aec1491574463bad8..8e950489c881267bf7192ff30c0374c88121c2a5 100644 (file)
@@ -309,20 +309,15 @@ static struct logical_volume *_set_up_pvmove_lv(struct cmd_context *cmd,
                        continue;
                }
                seg = first_seg(lv);
-               if (seg_is_raid(seg) || seg_is_mirrored(seg)) {
+               if (seg_is_raid(seg) || seg_is_mirrored(seg) ||
+                   lv_is_thin_volume(lv) || lv_is_thin_pool(lv)) {
                        /*
                         * Pass over top-level LVs - they were handled.
                         * Allow sub-LVs to proceed.
                         */
                        continue;
                }
-               if (lv_is_thin_volume(lv) || lv_is_thin_pool(lv)) {
-                       lv_skipped = 1;
-                       log_print_unless_silent("Skipping thin%s LV %s",
-                                               lv_is_thin_pool(lv) ? "-pool" : "",
-                                               lv->name);
-                       continue;
-               }
+
                if (lv->status & LOCKED) {
                        lv_skipped = 1;
                        log_print_unless_silent("Skipping locked LV %s", lv->name);
This page took 0.038054 seconds and 5 git commands to generate.