summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJonathan Brassow <jbrassow@redhat.com>2013-08-23 09:13:14 -0500
committerJonathan Brassow <jbrassow@redhat.com>2013-08-23 09:13:14 -0500
commit448ff0119fc0f4983917e10b663d9db896f8c5db (patch)
treee35b825f2d48b286d768bc496b270539454b51b4
parentc59167ec132071d6ab53f928b0775c36a704fe7c (diff)
downloadlvm2-448ff0119fc0f4983917e10b663d9db896f8c5db.tar.gz
pvmove: Ability to move thin volumes
The previous commit was missing the code to allow moving thin volumes.
-rw-r--r--tools/pvmove.c11
1 files changed, 3 insertions, 8 deletions
diff --git a/tools/pvmove.c b/tools/pvmove.c
index 34adc6d80..8e950489c 100644
--- a/tools/pvmove.c
+++ b/tools/pvmove.c
@@ -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);