--- 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. filesystem type - + @@ -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. fast stop - +