]> sourceware.org Git - lvm2.git/commitdiff
cov: check result of sync_local_dev_names
authorZdenek Kabelac <zkabelac@redhat.com>
Sat, 2 Nov 2024 20:57:00 +0000 (21:57 +0100)
committerZdenek Kabelac <zkabelac@redhat.com>
Tue, 5 Nov 2024 13:18:50 +0000 (14:18 +0100)
Although ATM this function always returns 1.
(maybe should be void)

tools/pvmove_poll.c

index 6b3ab4550843afaec3c12cd4ccc510ae835b976d..b1fb3ca082f3d8701a389ccee649ef874959b5ad 100644 (file)
@@ -97,7 +97,8 @@ int pvmove_finish(struct cmd_context *cmd, struct volume_group *vg,
        if (!lv_update_and_reload(lv_mirr))
                return_0;
 
-       sync_local_dev_names(cmd);
+       if (!sync_local_dev_names(cmd))
+               stack;
 
        /* Deactivate mirror LV */
        if (!deactivate_lv(cmd, lv_mirr)) {
This page took 0.039501 seconds and 5 git commands to generate.