Blame SOURCES/bz1814896-Filesystem-fast_stop-default-to-no-for-GFS2.patch

5371d1
--- a/heartbeat/Filesystem	2020-06-11 15:49:54.111316780 +0200
5371d1
+++ b/heartbeat/Filesystem	2020-06-11 15:53:53.423821158 +0200
5371d1
@@ -60,6 +60,21 @@
5371d1
 # Defaults
5371d1
 DFLT_STATUSDIR=".Filesystem_status/"
5371d1
 
5371d1
+# Parameter defaults
5371d1
+
5371d1
+OCF_RESKEY_fstype_default=""
5371d1
+OCF_RESKEY_fast_stop_default="yes"
5371d1
+
5371d1
+: ${OCF_RESKEY_fstype=${OCF_RESKEY_fstype_default}}
5371d1
+if [ -z "${OCF_RESKEY_fast_stop}" ]; then
5371d1
+	case "$OCF_RESKEY_fstype" in
5371d1
+		gfs2)
5371d1
+			OCF_RESKEY_fast_stop="no";;
5371d1
+		*)
5371d1
+			OCF_RESKEY_fast_stop=${OCF_RESKEY_fast_stop_default};;
5371d1
+	esac
5371d1
+fi
5371d1
+
5371d1
 # Variables used by multiple methods
5371d1
 HOSTOS=`uname`
5371d1
 
5371d1
@@ -135,7 +150,7 @@
5371d1
 The type of filesystem to be mounted.
5371d1
 </longdesc>
5371d1
 <shortdesc lang="en">filesystem type</shortdesc>
5371d1
-<content type="string" default="" />
5371d1
+<content type="string" default="${OCF_RESKEY_fstype_default}" />
5371d1
 </parameter>
5371d1
 
5371d1
 <parameter name="options">
5371d1
@@ -178,9 +193,11 @@
5371d1
 users easily and want to prevent the stop action from failing,
5371d1
 then set this parameter to "no" and add an appropriate timeout
5371d1
 for the stop operation.
5371d1
+
5371d1
+This defaults to "no" for GFS2 filesystems.
5371d1
 </longdesc>
5371d1
 <shortdesc lang="en">fast stop</shortdesc>
5371d1
-<content type="boolean" default="yes" />
5371d1
+<content type="boolean" default="${OCF_RESKEY_fast_stop_default}" />
5371d1
 </parameter>
5371d1
 
5371d1
 <parameter name="force_clones">