Blame SOURCES/bz1808468-1-lvmlockd-fix-conditionals.patch

d42a06
From 0a299ee9a00ec9e2dccdcf6a4132e55a9207daa5 Mon Sep 17 00:00:00 2001
d42a06
From: Zhao Heming <heming.zhao@suse.com>
d42a06
Date: Mon, 24 Feb 2020 11:22:34 +0800
d42a06
Subject: [PATCH] [lvmlockd] support lvm2-2.03 removing lvmetad
d42a06
d42a06
Signed-off-by: Zhao Heming <heming.zhao@suse.com>
d42a06
---
d42a06
 heartbeat/lvmlockd | 4 ++--
d42a06
 1 file changed, 2 insertions(+), 2 deletions(-)
d42a06
d42a06
diff --git a/heartbeat/lvmlockd b/heartbeat/lvmlockd
d42a06
index 3c8c69cc9..e80c7647e 100755
d42a06
--- a/heartbeat/lvmlockd
d42a06
+++ b/heartbeat/lvmlockd
d42a06
@@ -196,11 +196,11 @@ setup_lvm_config()
d42a06
 	out=$(lvmconfig 'global/locking_type')
d42a06
 	lock_type=$(echo "$out" | cut -d'=' -f2)
d42a06
 
d42a06
-	if [ "$use_lvmlockd" -ne 1 ] ; then
d42a06
+	if [ "$use_lvmlockd" != 1 ] ; then
d42a06
 		ocf_log info "setting \"use_lvmlockd=1\" in /etc/lvm/lvm.conf ..."
d42a06
 		sed -i 's,^[[:blank:]]*use_lvmlockd[[:blank:]]*=.*,\ \ \ \ use_lvmlockd = 1,g' /etc/lvm/lvm.conf
d42a06
 	fi
d42a06
-	if [ "$lock_type" -ne 1 ] ; then
d42a06
+	if [ "$lock_type" != 1 ] ; then
d42a06
 		ocf_log info "setting \"locking_type=1\" in /etc/lvm/lvm.conf ..."
d42a06
 		sed -i 's,^[[:blank:]]*locking_type[[:blank:]]*=.*,\ \ \ \ locking_type = 1,g' /etc/lvm/lvm.conf
d42a06
 	fi