]> sourceware.org Git - lvm2.git/commit
generators: avoid contacting syslog with generators
authorZdenek Kabelac <zkabelac@redhat.com>
Mon, 7 Jan 2019 14:48:39 +0000 (15:48 +0100)
committerZdenek Kabelac <zkabelac@redhat.com>
Tue, 8 Jan 2019 12:13:54 +0000 (13:13 +0100)
commitfdd612b8242281ac599c220726155202c71549a8
treee8231d067016b4da14584108b108e65c8a964f5b
parent6298eaeca50e32cdff3adefdb57b09c3250547a2
generators: avoid contacting syslog with generators

The systemd generators are executed very early during the switch
from initramfs to system partition and the syslog is not yet fully
operational - it may cause blocking, if some debug logging is enabled
at the same time in /etc/lvm/lvm.conf log{} section.

To avoid timeouting and killing this generator - rather enhance lvm
code to suppress any syslog communication when LVM_SUPPRESS_SYSLOG
envvar is set.

Use of this envvar is needed since the parsing of i.e. cmdline options
that could eventually override lvm.conf setting happens in this case
way too late and number of lines could have been already streamed to
syslog.
WHATS_NEW
lib/log/log.c
man/lvm.8_main
scripts/generator-internals.c
This page took 0.041991 seconds and 5 git commands to generate.