]> sourceware.org Git - lvm2.git/commitdiff
lvchange: remove unneeded call
authorZdenek Kabelac <zkabelac@redhat.com>
Sun, 14 Feb 2021 16:27:45 +0000 (17:27 +0100)
committerZdenek Kabelac <zkabelac@redhat.com>
Wed, 17 Feb 2021 10:21:35 +0000 (11:21 +0100)
Sync is already happining in activate_and_wipe_lvlist().

tools/lvchange.c

index f37b6838149ba730877259e904b95c247b7f224f..31633987bf0854b17262cec387d5e9d15f1747d3 100644 (file)
@@ -410,13 +410,6 @@ static int _lvchange_resync(struct cmd_context *cmd, struct logical_volume *lv)
        if (!activate_and_wipe_lvlist(&device_list, 0))
                return 0;
 
-       /* Wait until devices are away */
-       if (!sync_local_dev_names(lv->vg->cmd)) {
-               log_error("Failed to sync local devices after updating %s.",
-                         display_lvname(lv));
-               return 0;
-       }
-
        /* Put metadata sub-LVs back in place */
        if (!_attach_metadata_devices(seg, &device_list)) {
                log_error("Failed to reattach %s device after clearing.",
This page took 0.49929 seconds and 5 git commands to generate.