On Tue, Oct 19, 2010 at 09:34:28PM +0200, Florian Haas wrote:
> + if ocf_is_true ${OCF_RESKEY_wait_for_leasetime_on_stop}; then
> + local leasetimefile
> + local sleeptime
> + leasetimefile=/proc/fs/nfsd/nfsv4leasetime
> + if [ -r ${unlockfile} ]; then
test on unlockfile,
then read leasetimefile.
Looks like a ccnp error? (classic copy'n'paste...)
> + sleeptime=$((`cat ${leasetimefile}`+2))
> + ocf_log info "Sleeping ${sleeptime} seconds to
> accommodate for NFSv4 lease expiry"
> + sleep ${sleeptime}s
> + else
> + ocf_log warn "Unable to read NFSv4 lease time from
> ${leasetimefile}, file not found or not readable"
> + fi
> + fi
> +
--
: Lars Ellenberg
: LINBIT | Your Way to High Availability
: DRBD/HA support and consulting http://www.linbit.com
DRBD® and LINBIT® are registered trademarks of LINBIT, Austria.
_______________________________________________________
Linux-HA-Dev: [email protected]
http://lists.linux-ha.org/mailman/listinfo/linux-ha-dev
Home Page: http://linux-ha.org/