diff options
author | Petr Rockai <prockai@redhat.com> | 2009-10-22 10:40:41 +0000 |
---|---|---|
committer | Petr Rockai <prockai@redhat.com> | 2009-10-22 10:40:41 +0000 |
commit | 241e84f79d23a6bdf2199fd532b2648191b41506 (patch) | |
tree | 1a572b31fdbdd7beabdceb9d0cdf8d4cc3d55c01 /daemons/dmeventd/plugins/mirror | |
parent | 6ce24f679abe8d99672f566b1abe7d8d88074d81 (diff) | |
download | lvm2-241e84f79d23a6bdf2199fd532b2648191b41506.tar.gz lvm2-241e84f79d23a6bdf2199fd532b2648191b41506.tar.xz lvm2-241e84f79d23a6bdf2199fd532b2648191b41506.zip |
Only announce mirror monitoring to syslog after initialisation succeeds.
Diffstat (limited to 'daemons/dmeventd/plugins/mirror')
-rw-r--r-- | daemons/dmeventd/plugins/mirror/dmeventd_mirror.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/daemons/dmeventd/plugins/mirror/dmeventd_mirror.c b/daemons/dmeventd/plugins/mirror/dmeventd_mirror.c index 503ec0de..eea039c8 100644 --- a/daemons/dmeventd/plugins/mirror/dmeventd_mirror.c +++ b/daemons/dmeventd/plugins/mirror/dmeventd_mirror.c @@ -243,8 +243,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) @@ -264,6 +262,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; |