]> sourceware.org Git - lvm2.git/commitdiff
vgchange: start polling with option
authorZdenek Kabelac <zkabelac@redhat.com>
Mon, 11 Jun 2018 20:18:00 +0000 (22:18 +0200)
committerZdenek Kabelac <zkabelac@redhat.com>
Mon, 11 Jun 2018 20:25:42 +0000 (22:25 +0200)
Polling start either with '--refresh'
or with '--poll' option specified.

tools/vgchange.c

index b07057f99d5555dd78fb8082b8ce674016704101..b427a81bdde5a8dbfb89b0fe7903f6569dbb6ba1 100644 (file)
@@ -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;
 
This page took 0.037588 seconds and 5 git commands to generate.