From: Martin Schwenke Date: Fri, 10 Jan 2020 03:04:14 +0000 (+1100) Subject: ctdb-tests: Put recovery lock for local daemons into a subdirectory X-Git-Tag: samba-4.12.0rc1~49 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=64501f519319f83fb6281da50c76275782ee1f6c;p=thirdparty%2Fsamba.git ctdb-tests: Put recovery lock for local daemons into a subdirectory This makes it more like the way it works with a cluster filesystem. It also allows the subdirectory to be manipulated in tests. Signed-off-by: Martin Schwenke Reviewed-by: Amitay Isaacs --- diff --git a/ctdb/tests/local_daemons.sh b/ctdb/tests/local_daemons.sh index 6ae1f1c2441..e45a79c3e82 100755 --- a/ctdb/tests/local_daemons.sh +++ b/ctdb/tests/local_daemons.sh @@ -191,7 +191,9 @@ local_daemons_setup () $_use_ipv6 >"$_public_addresses_all" fi - _recovery_lock="${directory}/rec.lock" + _recovery_lock_dir="${directory}/shared/.ctdb" + mkdir -p "$_recovery_lock_dir" + _recovery_lock="${_recovery_lock_dir}/rec.lock" if $_recovery_lock_use_command ; then _helper="${CTDB_SCRIPTS_HELPER_BINDIR}/ctdb_mutex_fcntl_helper" _t="! ${_helper} ${_recovery_lock}"