From: Takahiro Yasui <tyasui@redhat.com>
To: lvm-devel@redhat.com
Subject: [PATCH] change the location of mirror device monitored message
Date: Wed, 19 Aug 2009 11:43:21 -0400 [thread overview]
Message-ID: <4A8C1D99.1010309@redhat.com> (raw)
Hi,
This patch moves the message telling that a mirror device is monitored
just before incrementing the usage counter so that the message is
displayed only when a mirror device is successfully registered.
The new location of the message is consistent with snapshot.
Signed-off-by: Takahiro Yasui <tyasui@redhat.com>
---
daemons/dmeventd/plugins/mirror/dmeventd_mirror.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
Index: LVM2.02.52-20090818/daemons/dmeventd/plugins/mirror/dmeventd_mirror.c
===================================================================
--- LVM2.02.52-20090818.orig/daemons/dmeventd/plugins/mirror/dmeventd_mirror.c
+++ LVM2.02.52-20090818/daemons/dmeventd/plugins/mirror/dmeventd_mirror.c
@@ -241,8 +241,6 @@ int register_device(const char *device,
pthread_mutex_lock(&_register_mutex);
- syslog(LOG_INFO, "Monitoring mirror device %s for events\n", device);
-
/*
* Need some space for allocations. 1024 should be more
* than enough for what we need (device mapper name splitting)
@@ -262,6 +260,8 @@ int register_device(const char *device,
lvm2_run(_lvm_handle, "_memlock_inc");
}
+ syslog(LOG_INFO, "Monitoring mirror device %s for events\n", device);
+
_register_count++;
r = 1;
--
Takahiro Yasui
Hitachi Computer Products (America), Inc.
reply other threads:[~2009-08-19 15: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=4A8C1D99.1010309@redhat.com \
--to=tyasui@redhat.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.