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