diff options
author | Peter Rajnoha <prajnoha@redhat.com> | 2014-09-30 16:08:05 +0200 |
---|---|---|
committer | Peter Rajnoha <prajnoha@redhat.com> | 2014-09-30 16:08:05 +0200 |
commit | a5f01dad224929ea39fd3a53753b8341028017b8 (patch) | |
tree | 9a169cd0822b2fcbc72a321636948f53be772ae4 /tools/vgchange.c | |
parent | c2981cf921c5808b6e9b21d72a988e9b22f2d4a7 (diff) | |
download | lvm2-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/vgchange.c')
-rw-r--r-- | tools/vgchange.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/vgchange.c b/tools/vgchange.c index dfb1251e2..9a9fe4866 100644 --- a/tools/vgchange.c +++ b/tools/vgchange.c @@ -689,7 +689,7 @@ int vgchange(struct cmd_context *cmd, int argc, char **argv) * direct activation instead of autoactivation. */ log_warn("lvmetad is not active yet, using direct activation during sysinit"); - lvmetad_set_active(0); + lvmetad_set_active(cmd, 0); } else if (lvmetad_active()) { /* * If lvmetad is active already, we want |