summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorOndrej Kozina <okozina@redhat.com>2015-04-08 10:30:30 +0200
committerOndrej Kozina <okozina@redhat.com>2015-04-13 20:52:12 +0200
commit59c417379e067f85cd962c2024f7a042f04a41fd (patch)
tree58491354ef2cdd4edbae9197a31dae68cafeae03
parentfa16c9b7cbe5a4d71452247765142c670b3b0e31 (diff)
downloadlvm2-59c417379e067f85cd962c2024f7a042f04a41fd.tar.gz
vgchange: remove redundant check
pvmove LVs are invisible thus already skipped due to check lv_is_visible() at the beginning of the cycle.
-rw-r--r--tools/vgchange.c5
1 files changed, 0 insertions, 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;