From: Malahal Naineni <malahal@us.ibm.com>
To: lvm-devel@redhat.com
Subject: [PATCH] Fix activated/deactivated log message
Date: Mon, 07 Dec 2009 06:43:36 -0800 [thread overview]
Message-ID: <8b2a589b8b023ec44167.1260197016@localhost> (raw)
I see "Deactivated" message when I activate and "Activated" message when
I deactivate. The code uses "activate" as boolean but it can be any one
of the enum values from CHANGE_AY, CHANGE_AN, CHANGE_AE, etc.
Signed-off-by: Malahal Naineni <malahal@us.ibm.com>
diff -r b435737bd332 -r 8b2a589b8b02 tools/vgchange.c
--- a/tools/vgchange.c Mon Dec 07 01:07:01 2009 -0800
+++ b/tools/vgchange.c Mon Dec 07 06:39:17 2009 -0800
@@ -104,8 +104,8 @@ static int _activate_lvs_in_vg(struct cm
if (expected_count)
log_verbose("%s %d logical volumes in volume group %s",
- activate ? "Activated" : "Deactivated",
- count, vg->name);
+ (activate == CHANGE_AN || activate == CHANGE_ALN)?
+ "Deactivated" : "Activated", count, vg->name);
return (expected_count != count) ? ECMD_FAILED : ECMD_PROCESSED;
}
reply other threads:[~2009-12-07 14:43 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=8b2a589b8b023ec44167.1260197016@localhost \
--to=malahal@us.ibm.com \
--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.