ctdb-scripts: Fix CTDB_DBDIR=tmpfs support

Enterprise / Samba - Martin Schwenke [meltin.net] - 18 November 2015 04:51 EST

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.

d967789 ctdb-scripts: Fix CTDB_DBDIR=tmpfs support
ctdb/config/ctdbd_wrapper | 79 ++++++++++++++++-----------------------------
ctdb/config/functions | 25 ++++++++++++++
2 files changed, 52 insertions(+), 52 deletions(-)

Upstream: gitweb.samba.org


  • Share