mirror of
git://sourceware.org/git/lvm2.git
synced 2024-12-22 17:35:59 +03:00
Suppress locking error messages in monitoring init scripts.
This commit is contained in:
parent
86f87f9673
commit
0390acff8c
@ -1,5 +1,6 @@
|
||||
Version 2.02.87 -
|
||||
===============================
|
||||
Suppress locking error messages in monitoring init scripts.
|
||||
If pipe in clvmd fails, return busy instead of using uninitialised descriptors.
|
||||
Add dmeventd monitoring shared library for RAID.
|
||||
Add RAID metadata devices to considered devices in _add_lv_to_dtree.
|
||||
|
@ -221,7 +221,7 @@ static void _update_vg_lock_count(const char *resource, uint32_t flags)
|
||||
*/
|
||||
int init_locking(int type, struct cmd_context *cmd, int suppress_messages)
|
||||
{
|
||||
if (ignorelockingfailure() && getenv("LVM_SUPPRESS_LOCKING_FAILURE_MESSAGES"))
|
||||
if (getenv("LVM_SUPPRESS_LOCKING_FAILURE_MESSAGES"))
|
||||
suppress_messages = 1;
|
||||
|
||||
if (type < 0)
|
||||
|
@ -42,6 +42,7 @@ VGS=${sbindir}/vgs
|
||||
LOCK_FILE="/var/lock/subsys/$DAEMON"
|
||||
|
||||
WARN=1
|
||||
export LVM_SUPPRESS_LOCKING_FAILURE_MESSAGES=1
|
||||
|
||||
start()
|
||||
{
|
||||
|
@ -8,6 +8,7 @@ Conflicts=shutdown.target
|
||||
|
||||
[Service]
|
||||
Type=oneshot
|
||||
Environment=LVM_SUPPRESS_LOCKING_FAILURE_MESSAGES=1
|
||||
ExecStart=@sbindir@/lvm vgchange --monitor y
|
||||
ExecStop=@sbindir@/lvm vgchange --monitor n
|
||||
RemainAfterExit=yes
|
||||
|
Loading…
Reference in New Issue
Block a user