From 21a8ac0cd3a392feaa049ab509c4727eee548d6b Mon Sep 17 00:00:00 2001 From: David Teigland Date: Fri, 9 Oct 2015 12:20:22 -0500 Subject: [PATCH] Fix segfault when lvmlockd is running but not lvmetad If lvmlockd is running, lvmetad is configured (use_lvmetad=1), but lvmetad is not running, then commands will seg fault when trying to send a message to lvmetad. The difference is lvmetad being "active", not just "used". --- lib/cache/lvmetad.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/cache/lvmetad.c b/lib/cache/lvmetad.c index 20d20019f..c7f6ecb03 100644 --- a/lib/cache/lvmetad.c +++ b/lib/cache/lvmetad.c @@ -1683,7 +1683,7 @@ void lvmetad_validate_global_cache(struct cmd_context *cmd, int force) return; } - if (!lvmetad_used()) + if (!lvmetad_active()) return; log_debug_lvmetad("Validating global lvmetad cache");