mirror of
git://sourceware.org/git/lvm2.git
synced 2024-12-21 13:34:40 +03:00
vgchange: remove redundant check
pvmove LVs are invisible thus already skipped due to check lv_is_visible() at the beginning of the cycle.
This commit is contained in:
parent
fa16c9b7cb
commit
59c417379e
@ -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)))
|
if (lv_is_replicator_dev(lv) && (lv != first_replicator_dev(lv)))
|
||||||
continue;
|
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)))
|
if (lv_activation_skip(lv, activate, arg_count(cmd, ignoreactivationskip_ARG)))
|
||||||
continue;
|
continue;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user