summaryrefslogtreecommitdiff
path: root/tools/vgck.c
diff options
context:
space:
mode:
authorPeter Rajnoha <prajnoha@redhat.com>2014-09-30 16:08:05 +0200
committerPeter Rajnoha <prajnoha@redhat.com>2014-09-30 16:08:05 +0200
commita5f01dad224929ea39fd3a53753b8341028017b8 (patch)
tree9a169cd0822b2fcbc72a321636948f53be772ae4 /tools/vgck.c
parentc2981cf921c5808b6e9b21d72a988e9b22f2d4a7 (diff)
downloadlvm2-a5f01dad224929ea39fd3a53753b8341028017b8.tar.gz
filters: refresh filters when lvmetad use is toggled
We need to use proper filter chain when we disable lvmetad use explicitly in the code by calling lvmetad_set_active(0) while overriding existing configuration. We need to reinitialize filters in this case so proper filter chain is used. The same applies for the other way round - when we enable lvmetad use explicitly in the code (though this is not yet used).
Diffstat (limited to 'tools/vgck.c')
-rw-r--r--tools/vgck.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/vgck.c b/tools/vgck.c
index 4ad045aae..b9d05ae1c 100644
--- a/tools/vgck.c
+++ b/tools/vgck.c
@@ -37,7 +37,7 @@ static int vgck_single(struct cmd_context *cmd __attribute__((unused)),
int vgck(struct cmd_context *cmd, int argc, char **argv)
{
- lvmetad_set_active(0);
+ lvmetad_set_active(cmd, 0);
return process_each_vg(cmd, argc, argv, 0, NULL,
&vgck_single);
}