mirror of
git://sourceware.org/git/lvm2.git
synced 2025-01-02 01:18:26 +03:00
Fix syslog initialisation in clvmd to respect lvm.conf setting.
This commit is contained in:
parent
119dd6604e
commit
faa6ac9439
@ -1,5 +1,6 @@
|
||||
Version 2.02.85 -
|
||||
===================================
|
||||
Fix syslog initialisation in clvmd to respect lvm.conf setting.
|
||||
Fix possible overflow in maximum stripe size and physical extent size.
|
||||
Add test for failed allocation from dm_task_set_uuid() in dmeventd.
|
||||
Improve pvremove error message when PV belongs to a VG.
|
||||
|
@ -915,6 +915,10 @@ void lvm_do_fs_unlock(void)
|
||||
/* Called to initialise the LVM context of the daemon */
|
||||
int init_clvm(int using_gulm, char **argv)
|
||||
{
|
||||
/* Use LOG_DAEMON for syslog messages instead of LOG_USER */
|
||||
init_syslog(LOG_DAEMON);
|
||||
openlog("clvmd", LOG_PID, LOG_DAEMON);
|
||||
|
||||
if (!(cmd = create_toolcontext(1, NULL))) {
|
||||
log_error("Failed to allocate command context");
|
||||
return 0;
|
||||
@ -925,9 +929,6 @@ int init_clvm(int using_gulm, char **argv)
|
||||
return 0;
|
||||
}
|
||||
|
||||
/* Use LOG_DAEMON for syslog messages instead of LOG_USER */
|
||||
init_syslog(LOG_DAEMON);
|
||||
openlog("clvmd", LOG_PID, LOG_DAEMON);
|
||||
cmd->cmd_line = "clvmd";
|
||||
|
||||
/* Check lvm.conf is setup for cluster-LVM */
|
||||
|
Loading…
Reference in New Issue
Block a user