change the location of mirror device monitored message
PATCH 1/1 change the location of mirror device monitored message
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 <[email protected]>
--- daemons/dmeventd/plugins/mirror/dmeventd_mirror.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)
daemons/dmeventd/plugins/mirror/dmeventd_mirror.c +2 -2
@@ -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 ;
Signature · 2 lines
Takahiro Yasui Hitachi Computer Products (America), Inc.