]> sourceware.org Git - lvm2.git/commitdiff
thin: ignore parallel merge while polling
authorZdenek Kabelac <zkabelac@redhat.com>
Wed, 17 Mar 2021 10:17:32 +0000 (11:17 +0100)
committerZdenek Kabelac <zkabelac@redhat.com>
Thu, 18 Mar 2021 17:34:57 +0000 (18:34 +0100)
If the thin volume has no merging snapshot,
(being already merged) there is nothing to check.

tools/lvconvert_poll.c

index b64cffe21a0b797abf1aa997a3778b0ac6cfa20b..50d47164fa2a8478df9836718cde06e60705b47a 100644 (file)
@@ -179,7 +179,10 @@ progress_t poll_thin_merge_progress(struct cmd_context *cmd,
 {
        uint32_t device_id = 0;
 
-       if (!lv_thin_device_id(lv, &device_id) || !lv->snapshot) {
+       if (!lv->snapshot)
+               return PROGRESS_FINISHED_ALL; /* Already merged by someone else */
+
+       if (!lv_thin_device_id(lv, &device_id)) {
                stack;
                return PROGRESS_CHECK_FAILED;
        }
This page took 0.032298 seconds and 5 git commands to generate.