diff options
author | Zdenek Kabelac <zkabelac@redhat.com> | 2018-06-11 22:18:00 +0200 |
---|---|---|
committer | Zdenek Kabelac <zkabelac@redhat.com> | 2018-06-11 22:25:42 +0200 |
commit | 75fed05d3ef648583764ff56cc577e0f3eba1bba (patch) | |
tree | 2a96d110c540eddba3bacd721ac21e7a2681263a /tools/vgchange.c | |
parent | e82b70e7399b20dd201e8d7fad182ce276596fb2 (diff) | |
download | lvm2-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.c | 1 |
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; |