master - pvmove: Ability to move thin volumes
Gitweb: http://git.fedorahosted.org/git/?p=lvm2.git;a=commitdiff;h=448ff0119fc0f4983917e10b663d9db896f8c5db Commit: 448ff0119fc0f4983917e10b663d9db896f8c5db Parent: c59167ec132071d6ab53f928b0775c36a704fe7c Author: Jonathan Brassow <[email protected]> AuthorDate: Fri Aug 23 09:13:14 2013 -0500 Committer: Jonathan Brassow <[email protected]> CommitterDate: Fri Aug 23 09:13:14 2013 -0500
pvmove: Ability to move thin volumes
The previous commit was missing the code to allow moving thin volumes.
--- tools/pvmove.c | 11 +++-------- 1 files changed, 3 insertions(+), 8 deletions(-)
tools/pvmove.c +3 -8
@@ -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);