Blame SOURCES/bz1969968-lvmlockd-remove-with_cmirrord.patch

f3f7a5
diff --color -uNr a/heartbeat/lvmlockd b/heartbeat/lvmlockd
f3f7a5
--- a/heartbeat/lvmlockd	2021-06-11 16:08:37.725598299 +0200
f3f7a5
+++ b/heartbeat/lvmlockd	2021-06-11 16:10:38.690910781 +0200
f3f7a5
@@ -59,14 +59,6 @@
f3f7a5
 <shortdesc lang="en">This agent manages the lvmlockd daemon</shortdesc>
f3f7a5
 
f3f7a5
 <parameters>
f3f7a5
-<parameter name="with_cmirrord" unique="0" required="0">
f3f7a5
-<longdesc lang="en">
f3f7a5
-Start with cmirrord (cluster mirror log daemon).
f3f7a5
-</longdesc>
f3f7a5
-<shortdesc lang="en">activate cmirrord</shortdesc>
f3f7a5
-<content type="boolean" default="false" />
f3f7a5
-</parameter>
f3f7a5
-
f3f7a5
 <parameter name="pidfile" unique="0">
f3f7a5
 <longdesc lang="en">pid file</longdesc>
f3f7a5
 <shortdesc lang="en">pid file</shortdesc>
f3f7a5
@@ -110,7 +102,6 @@
f3f7a5
 : ${OCF_RESKEY_pidfile:="/run/lvmlockd.pid"}
f3f7a5
 
f3f7a5
 LOCKD="lvmlockd"
f3f7a5
-CMIRRORD="cmirrord"
f3f7a5
 # 0.5s sleep each count
f3f7a5
 TIMEOUT_COUNT=20
f3f7a5
 
f3f7a5
@@ -150,12 +141,6 @@
f3f7a5
 		rc=$?
f3f7a5
 		mirror_rc=$rc
f3f7a5
 
f3f7a5
-		if ocf_is_true $OCF_RESKEY_with_cmirrord; then
f3f7a5
-			pid=$(pgrep $CMIRRORD | head -n1)
f3f7a5
-			daemon_is_running "$pid"
f3f7a5
-			mirror_rc=$?
f3f7a5
-		fi
f3f7a5
-
f3f7a5
 		# If these ever don't match, return error to force recovery
f3f7a5
 		if [ $mirror_rc -ne $rc ]; then
f3f7a5
 			return $OCF_ERR_GENERIC
f3f7a5
@@ -235,16 +220,6 @@
f3f7a5
 		return $OCF_SUCCESS
f3f7a5
 	fi
f3f7a5
 
f3f7a5
-	if ocf_is_true $OCF_RESKEY_with_cmirrord; then
f3f7a5
-		ocf_log info "starting ${CMIRRORD}..."
f3f7a5
-		$CMIRRORD
f3f7a5
-		rc=$?
f3f7a5
-		if [ $rc -ne $OCF_SUCCESS ] ; then
f3f7a5
-			ocf_exit_reason "Failed to start ${CMIRRORD}, exit code: $rc"
f3f7a5
-			return $OCF_ERR_GENERIC
f3f7a5
-		fi
f3f7a5
-	fi
f3f7a5
-
f3f7a5
 	if [ ! -z "$OCF_RESKEY_socket_path" ] ; then
f3f7a5
 		extras="$extras -s ${OCF_RESKEY_socket_path}"
f3f7a5
 	fi
f3f7a5
@@ -341,13 +316,8 @@
f3f7a5
 	pid=$(get_pid)
f3f7a5
 	kill_stop $LOCKD $pid
f3f7a5
 
f3f7a5
-	if ocf_is_true $OCF_RESKEY_with_cmirrord; then
f3f7a5
-		pid=$(pgrep $CMIRRORD)
f3f7a5
-		kill_stop $CMIRRORD $pid
f3f7a5
-	fi
f3f7a5
-
f3f7a5
 	if silent_status ; then
f3f7a5
-		ocf_exit_reason "Failed to stop, ${LOCKD} or ${CMIRRORD} still running."
f3f7a5
+		ocf_exit_reason "Failed to stop, ${LOCKD} still running."
f3f7a5
 		return $OCF_ERR_GENERIC
f3f7a5
 	fi
f3f7a5
 
f3f7a5
@@ -370,10 +340,6 @@
f3f7a5
 	check_binary pgrep
f3f7a5
 	check_binary lvmlockctl
f3f7a5
 
f3f7a5
-	if ocf_is_true $OCF_RESKEY_with_cmirrord; then
f3f7a5
-		check_binary $CMIRRORD
f3f7a5
-	fi
f3f7a5
-
f3f7a5
 	return $OCF_SUCCESS
f3f7a5
 }
f3f7a5