summaryrefslogtreecommitdiff
path: root/tools/vgchange.c
diff options
context:
space:
mode:
authorZdenek Kabelac <zkabelac@redhat.com>2018-06-11 22:18:00 +0200
committerZdenek Kabelac <zkabelac@redhat.com>2018-06-11 22:25:42 +0200
commit75fed05d3ef648583764ff56cc577e0f3eba1bba (patch)
tree2a96d110c540eddba3bacd721ac21e7a2681263a /tools/vgchange.c
parente82b70e7399b20dd201e8d7fad182ce276596fb2 (diff)
downloadlvm2-75fed05d3ef648583764ff56cc577e0f3eba1bba.tar.gz
vgchange: start polling with option
Polling start either with '--refresh' or with '--poll' option specified.
Diffstat (limited to 'tools/vgchange.c')
-rw-r--r--tools/vgchange.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/tools/vgchange.c b/tools/vgchange.c
index b07057f99..b427a81bd 100644
--- a/tools/vgchange.c
+++ b/tools/vgchange.c
@@ -662,6 +662,7 @@ static int _vgchange_single(struct cmd_context *cmd, const char *vg_name,
}
if (!arg_is_set(cmd, refresh_ARG) &&
+ arg_is_set(cmd, poll_ARG) &&
!vgchange_background_polling(cmd, vg))
return_ECMD_FAILED;