]> sourceware.org Git - lvm2.git/commitdiff
thin: explicitly avoid pvmove operation
authorZdenek Kabelac <zkabelac@redhat.com>
Sun, 21 Apr 2013 06:49:17 +0000 (08:49 +0200)
committerZdenek Kabelac <zkabelac@redhat.com>
Sun, 21 Apr 2013 21:09:11 +0000 (23:09 +0200)
So far we do not support pvmove for thin volumes
and thin pools.

WHATS_NEW
tools/pvmove.c

index 819fea491745d99e2d5b745f22986a7c0d2d587d..b016b8e134ae5319b1cf49ca7307a14d6b4624ff 100644 (file)
--- a/WHATS_NEW
+++ b/WHATS_NEW
@@ -1,5 +1,6 @@
 Version 2.02.99 - 
 ===================================
+  Add explicit message about unsupported pvmove for thin/thinpool volumes.
   Fix lvmetad error path in lvmetad_vg_lookup() for null vgname.
   Fix clvmd _cluster_request() return code in memory fail path.
   Add writemostly/writebehind support for RAID1
index a733049c4818e561a3965e3b6032c018dacf57aa..5c51c5fa214dfa170b386e4d1bf26eee3e9d256b 100644 (file)
@@ -248,6 +248,13 @@ static struct logical_volume *_set_up_pvmove_lv(struct cmd_context *cmd,
                        log_print_unless_silent("Skipping mirror image LV %s", lv->name);
                        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.034276 seconds and 5 git commands to generate.