mrc0mmand / rpms / lvm2

Forked from rpms/lvm2 3 years ago
Clone

Blame SOURCES/lvm2-2_02_131-fix-vg-metadata-comparison-failure-while-scanning-the-vg-for-lvmetad.patch

a4cb28
 WHATS_NEW           | 1 +
a4cb28
 lib/cache/lvmetad.c | 2 +-
a4cb28
 2 files changed, 2 insertions(+), 1 deletion(-)
a4cb28
a4cb28
diff --git a/WHATS_NEW b/WHATS_NEW
a4cb28
index 5de648c..9ddecbc 100644
a4cb28
--- a/WHATS_NEW
a4cb28
+++ b/WHATS_NEW
a4cb28
@@ -1,5 +1,6 @@
a4cb28
 Version 2.02.131 - 
a4cb28
 =====================================
a4cb28
+  Fix VG metadata comparison failure while scanning the VG for lvmetad.
a4cb28
   Ignore persistent cache if configuration changed. (2.02.127)
a4cb28
 
a4cb28
 Version 2.02.130 - 5th September 2015
a4cb28
diff --git a/lib/cache/lvmetad.c b/lib/cache/lvmetad.c
a4cb28
index b2e2f55..0fff65a 100644
a4cb28
--- a/lib/cache/lvmetad.c
a4cb28
+++ b/lib/cache/lvmetad.c
a4cb28
@@ -1174,7 +1174,7 @@ static struct volume_group *lvmetad_pvscan_vg(struct cmd_context *cmd, struct vo
a4cb28
 		if (!vgmeta_ret) {
a4cb28
 			vgmeta_ret = vgmeta;
a4cb28
 		} else {
a4cb28
-			if (!compare_config(vgmeta_ret->root, vgmeta->root)) {
a4cb28
+			if (compare_config(vgmeta_ret->root, vgmeta->root)) {
a4cb28
 				log_error("VG metadata comparison failed");
a4cb28
 				dm_config_destroy(vgmeta);
a4cb28
 				dm_config_destroy(vgmeta_ret);