* [PATCH] change the location of mirror device monitored message
@ 2009-08-19 15:43 Takahiro Yasui
0 siblings, 0 replies; only message in thread
From: Takahiro Yasui @ 2009-08-19 15:43 UTC (permalink / raw)
To: lvm-devel
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.
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2009-08-19 15:43 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-08-19 15:43 [PATCH] change the location of mirror device monitored message Takahiro Yasui
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.