1
0
mirror of git://sourceware.org/git/lvm2.git synced 2024-12-22 17:35:59 +03:00

Only announce mirror monitoring to syslog after initialisation succeeds.

This commit is contained in:
Petr Rockai 2009-10-22 10:40:41 +00:00
parent 6ce24f679a
commit 241e84f79d

View File

@ -243,8 +243,6 @@ int register_device(const char *device,
pthread_mutex_lock(&_register_mutex); 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 * Need some space for allocations. 1024 should be more
* than enough for what we need (device mapper name splitting) * 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"); lvm2_run(_lvm_handle, "_memlock_inc");
} }
syslog(LOG_INFO, "Monitoring mirror device %s for events\n", device);
_register_count++; _register_count++;
r = 1; r = 1;