From: David Teigland <teigland@sourceware.org>
To: lvm-devel@redhat.com
Subject: main - lvchange: fix error for foreign vg activation
Date: Tue, 17 Nov 2020 15:24:32 +0000 (GMT) [thread overview]
Message-ID: <20201117152432.9895A3858034@sourceware.org> (raw)
Gitweb: https://sourceware.org/git/?p=lvm2.git;a=commitdiff;h=aba9652e584b6f6a422233dea951eb59326a3de2
Commit: aba9652e584b6f6a422233dea951eb59326a3de2
Parent: 1cc75317f95def9521af535f4c58fb79df816b8c
Author: David Teigland <teigland@redhat.com>
AuthorDate: Tue Nov 17 09:22:40 2020 -0600
Committer: David Teigland <teigland@redhat.com>
CommitterDate: Tue Nov 17 09:22:40 2020 -0600
lvchange: fix error for foreign vg activation
was using ECMD_FAILED instead of 0.
---
tools/lvchange.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
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)))
reply other threads:[~2020-11-17 15:24 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20201117152432.9895A3858034@sourceware.org \
--to=teigland@sourceware.org \
--cc=lvm-devel@redhat.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.