From 59c417379e067f85cd962c2024f7a042f04a41fd Mon Sep 17 00:00:00 2001 From: Ondrej Kozina Date: Wed, 8 Apr 2015 10:30:30 +0200 Subject: [PATCH] vgchange: remove redundant check pvmove LVs are invisible thus already skipped due to check lv_is_visible() at the beginning of the cycle. --- tools/vgchange.c | 5 ----- 1 file changed, 5 deletions(-) diff --git a/tools/vgchange.c b/tools/vgchange.c index 88a85d86e..1665d3e5d 100644 --- a/tools/vgchange.c +++ b/tools/vgchange.c @@ -114,11 +114,6 @@ static int _activate_lvs_in_vg(struct cmd_context *cmd, struct volume_group *vg, if (lv_is_replicator_dev(lv) && (lv != first_replicator_dev(lv))) continue; - /* Can't deactivate a pvmove LV */ - /* FIXME There needs to be a controlled way of doing this */ - if (lv_is_pvmove(lv) && !is_change_activating(activate)) - continue; - if (lv_activation_skip(lv, activate, arg_count(cmd, ignoreactivationskip_ARG))) continue;