scripts: Fix CTDB_DBDIR=tmpfs support
authorMartin Schwenke <martin@meltin.net>
Tue, 17 Nov 2015 03:57:44 +0000 (14:57 +1100)
committerMartin Schwenke <martin@meltin.net>
Wed, 24 Feb 2016 05:15:14 +0000 (16:15 +1100)
commite91e352e87788e5546ef5895d283fceb69f2bde2
tree8795fc83b12d2376abd0223f30c4cc326671709d
parentc8fd374939669664c2d88a3fc3e9c3ac3632009f
scripts: Fix CTDB_DBDIR=tmpfs support

Various scripts (including debug_locks.sh, 00.ctdb, 05.system) need
CTDB_DBDIR to point to the right place... but it doesn't.

Move the rewriting of CTDB_DBDIR to loadconfig() so that it happens
for all scripts.  Have this code set internal variable
CTDB_DBDIR_TMPFS_OPTIONS so that ctdbd_wrapper can do the mount.

This loses the generality that was present in dbdir_tmpfs_start() but
it wasn't being used anyway.  If it is needed in the future then it
will be in the git history.

Signed-off-by: Martin Schwenke <martin@meltin.net>
Reviewed-by: Amitay Isaacs <amitay@gmail.com>
Autobuild-User(master): Amitay Isaacs <amitay@samba.org>
Autobuild-Date(master): Wed Nov 18 11:51:54 CET 2015 on sn-devel-104

(Imported from commit d9677894b7aa2248e1884ab9e21667879bf1e3c4)
config/ctdbd_wrapper
config/functions [changed mode: 0755->0644]