1
0
mirror of git://sourceware.org/git/lvm2.git synced 2025-01-02 01:18:26 +03:00

Suppress locking error messages in monitoring init scripts.

This commit is contained in:
Peter Rajnoha 2011-08-11 15:27:46 +00:00
parent 34338a3406
commit d183554c72
4 changed files with 4 additions and 1 deletions

View File

@ -1,5 +1,6 @@
Version 2.02.87 - Version 2.02.87 -
=============================== ===============================
Suppress locking error messages in monitoring init scripts.
If pipe in clvmd fails, return busy instead of using uninitialised descriptors. If pipe in clvmd fails, return busy instead of using uninitialised descriptors.
Add dmeventd monitoring shared library for RAID. Add dmeventd monitoring shared library for RAID.
Add RAID metadata devices to considered devices in _add_lv_to_dtree. Add RAID metadata devices to considered devices in _add_lv_to_dtree.

View File

@ -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) 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; suppress_messages = 1;
if (type < 0) if (type < 0)

View File

@ -42,6 +42,7 @@ VGS=${sbindir}/vgs
LOCK_FILE="/var/lock/subsys/$DAEMON" LOCK_FILE="/var/lock/subsys/$DAEMON"
WARN=1 WARN=1
export LVM_SUPPRESS_LOCKING_FAILURE_MESSAGES=1
start() start()
{ {

View File

@ -8,6 +8,7 @@ Conflicts=shutdown.target
[Service] [Service]
Type=oneshot Type=oneshot
Environment=LVM_SUPPRESS_LOCKING_FAILURE_MESSAGES=1
ExecStart=@sbindir@/lvm vgchange --monitor y ExecStart=@sbindir@/lvm vgchange --monitor y
ExecStop=@sbindir@/lvm vgchange --monitor n ExecStop=@sbindir@/lvm vgchange --monitor n
RemainAfterExit=yes RemainAfterExit=yes