diff options
author | David Teigland <teigland@redhat.com> | 2020-11-17 09:22:40 -0600 |
---|---|---|
committer | David Teigland <teigland@redhat.com> | 2020-11-17 09:22:40 -0600 |
commit | aba9652e584b6f6a422233dea951eb59326a3de2 (patch) | |
tree | 10fb04f80e8b0dbb7316003f24814af95a56b33a | |
parent | 1cc75317f95def9521af535f4c58fb79df816b8c (diff) | |
download | lvm2-aba9652e584b6f6a422233dea951eb59326a3de2.tar.gz |
lvchange: fix error for foreign vg activation
was using ECMD_FAILED instead of 0.
-rw-r--r-- | tools/lvchange.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/lvchange.c b/tools/lvchange.c index f9a0b54e3..f37b68381 100644 --- a/tools/lvchange.c +++ b/tools/lvchange.c @@ -202,7 +202,7 @@ static int _lvchange_activate(struct cmd_context *cmd, struct logical_volume *lv strcmp(lv->vg->system_id, cmd->system_id) && is_change_activating(activate)) { log_error("Cannot activate LVs in a foreign VG."); - return ECMD_FAILED; + return 0; } if (lv_activation_skip(lv, activate, arg_is_set(cmd, ignoreactivationskip_ARG))) |