[PATCH] ctdb-scripts: Fix CTDB_DBDIR=tmpfs support

Martin Schwenke martin at meltin.net
Wed Nov 18 05:20:00 UTC 2015

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.

Gee it would be nice to get these things right the first time...  :-)

Please review and push...

peace & happiness,
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-ctdb-scripts-Fix-CTDB_DBDIR-tmpfs-support.patch
Type: text/x-patch
Size: 5046 bytes
Desc: not available
URL: <http://lists.samba.org/pipermail/samba-technical/attachments/20151118/f034469a/0001-ctdb-scripts-Fix-CTDB_DBDIR-tmpfs-support.bin>

More information about the samba-technical mailing list