ctdb-scripts: Initialise CTDB_NFS_CALLOUT in statd-callout
commitf2924e98ab843f2befcf9f0e76505ba4e55bca4d
authorMartin Schwenke <martin@meltin.net>
Mon, 13 Feb 2017 22:04:41 +0000 (14 09:04 +1100)
committerKarolin Seeger <kseeger@samba.org>
Fri, 17 Feb 2017 15:02:00 +0000 (17 16:02 +0100)
tree76680ffe571e9398715b703bae3fdbbc7616b59f
parent44de4e0f5f33c57164ab61ab9666451cc2394ee8
ctdb-scripts: Initialise CTDB_NFS_CALLOUT in statd-callout

Some configurations may set CTDB_NFS_CALLOUT to the empty string.
They may do this if they allow a choice of NFS implementations.  In
this case the default call-out for Linux kernel NFS should be used.
However, statd-callout does not call nfs_callout_init() to set the
default.  Therefore, statd-callout is unable to restart the lock
manager, so the grace period is never entered.

statd-callout must call nfs_callout_init() before trying to restart
the lock manager.

BUG: https://bugzilla.samba.org/show_bug.cgi?id=12589

Signed-off-by: Martin Schwenke <martin@meltin.net>
Reviewed-by: Amitay Isaacs <amitay@gmail.com>
Autobuild-User(master): Martin Schwenke <martins@samba.org>
Autobuild-Date(master): Thu Feb 16 09:21:03 CET 2017 on sn-devel-144

(cherry picked from commit 5e7ae1b1e2fa8137aaa6a2a2f446156ae61f4c84)

Autobuild-User(v4-4-test): Karolin Seeger <kseeger@samba.org>
Autobuild-Date(v4-4-test): Fri Feb 17 16:02:00 CET 2017 on sn-devel-144
ctdb/config/statd-callout