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

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