From 0a26c20b88ab5fe7894a2e2207fd492aaca41095 Mon Sep 17 00:00:00 2001 From: David Teigland Date: Fri, 11 Sep 2015 13:08:59 -0500 Subject: [PATCH] lockd: fix rescanning VG metadata The code was expecting the wrong return value from compare_config, which returns 0 when equal. This is a problem for a lockd VG using multiple PVs when the VG needs to be rescanned. --- 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 b2e2f5516..0fff65a1c 100644 --- a/lib/cache/lvmetad.c +++ b/lib/cache/lvmetad.c @@ -1174,7 +1174,7 @@ static struct volume_group *lvmetad_pvscan_vg(struct cmd_context *cmd, struct vo if (!vgmeta_ret) { vgmeta_ret = vgmeta; } else { - if (!compare_config(vgmeta_ret->root, vgmeta->root)) { + if (compare_config(vgmeta_ret->root, vgmeta->root)) { log_error("VG metadata comparison failed"); dm_config_destroy(vgmeta); dm_config_destroy(vgmeta_ret);