]> sourceware.org Git - lvm2.git/commitdiff
lvconvert: skip polling in test mode
authorOndrej Kozina <okozina@redhat.com>
Wed, 2 Sep 2015 14:53:23 +0000 (16:53 +0200)
committerOndrej Kozina <okozina@redhat.com>
Wed, 2 Sep 2015 15:25:29 +0000 (17:25 +0200)
tools/lvconvert.c

index 07d9f437b3f2ae3ce2a8daa3b3fb7e5d3b5c1ea1..2bffb0704bd8cd648cc6d42c635f82a4942d63fb 100644 (file)
@@ -763,6 +763,9 @@ static int _lvconvert_poll_by_id(struct cmd_context *cmd, struct poll_operation_
                                 int is_merging_origin,
                                 int is_merging_origin_thin)
 {
+       if (test_mode())
+               return ECMD_PROCESSED;
+
        if (is_merging_origin)
                return poll_daemon(cmd, background,
                                (MERGING | (is_merging_origin_thin ? THIN_VOLUME : SNAPSHOT)),
This page took 0.046097 seconds and 5 git commands to generate.