From 161ae36363f5fa1b1469fd3a42c096c878002b31 Mon Sep 17 00:00:00 2001 From: David Teigland Date: Thu, 14 Jan 2016 16:12:46 -0600 Subject: test: add make check_lvmlockd_test Which runs lvmlockd in --test mode, without any lock manager. Also make some adjustments to the check_lvmlockd variations using the lock managds. --- daemons/lvmlockd/lvmlockd-core.c | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'daemons') diff --git a/daemons/lvmlockd/lvmlockd-core.c b/daemons/lvmlockd/lvmlockd-core.c index 292d19cc4..76a7650b1 100644 --- a/daemons/lvmlockd/lvmlockd-core.c +++ b/daemons/lvmlockd/lvmlockd-core.c @@ -3365,6 +3365,11 @@ static void *worker_thread_main(void *arg_in) int run_sanlock = lm_is_running_sanlock(); int run_dlm = lm_is_running_dlm(); + if (daemon_test) { + run_sanlock = gl_use_sanlock; + run_dlm = gl_use_dlm; + } + if (run_sanlock && run_dlm) act->result = -EXFULL; else if (!run_sanlock && !run_dlm) -- cgit v1.2.1