summaryrefslogtreecommitdiff
path: root/libdaemon
diff options
context:
space:
mode:
authorDavid Teigland <teigland@redhat.com>2015-09-29 13:40:52 -0500
committerDavid Teigland <teigland@redhat.com>2015-09-29 13:51:24 -0500
commitc805fa7c40ffd704523093edf4749e362f5c46ae (patch)
treef75a3ddd220b50c9900a438e451ade5e2f5c1345 /libdaemon
parent634bf8c953caba4550463281fc0a90ee43c80c8d (diff)
downloadlvm2-c805fa7c40ffd704523093edf4749e362f5c46ae.tar.gz
lockd: add debug logging for metadata error
When lvmetad_pvscan_vg() reads VG metadata from each PV, it compares it to the last one to verify it matches. If the VG metadata does not match on the PVs, an error is printed and it fails to read the VG. In this error case, use log_debug to show the differences between the two unmatching copies of the metadata.
Diffstat (limited to 'libdaemon')
-rw-r--r--libdaemon/client/config-util.c2
-rw-r--r--libdaemon/client/config-util.h1
2 files changed, 2 insertions, 1 deletions
diff --git a/libdaemon/client/config-util.c b/libdaemon/client/config-util.c
index 023257e2f..ec5ea98d6 100644
--- a/libdaemon/client/config-util.c
+++ b/libdaemon/client/config-util.c
@@ -289,7 +289,7 @@ static int close_enough(double d1, double d2)
return fabs(d1 - d2) < DBL_EPSILON;
}
-static int compare_value(struct dm_config_value *a, struct dm_config_value *b)
+int compare_value(struct dm_config_value *a, struct dm_config_value *b)
{
int r = 0;
diff --git a/libdaemon/client/config-util.h b/libdaemon/client/config-util.h
index 0e7de7ead..c56c26801 100644
--- a/libdaemon/client/config-util.h
+++ b/libdaemon/client/config-util.h
@@ -42,6 +42,7 @@ struct dm_config_node *make_config_node(struct dm_config_tree *cft,
struct dm_config_node *parent,
struct dm_config_node *pre_sib);
+int compare_value(struct dm_config_value *a, struct dm_config_value *b);
int compare_config(struct dm_config_node *a, struct dm_config_node *b);
struct dm_config_node *make_text_node(struct dm_config_tree *cft,