diff options
author | Zdenek Kabelac <zkabelac@redhat.com> | 2021-02-14 17:27:45 +0100 |
---|---|---|
committer | Zdenek Kabelac <zkabelac@redhat.com> | 2021-02-17 11:56:13 +0100 |
commit | b6dda4ade2bbf3ec98e10860213f345d15a28971 (patch) | |
tree | 2cc411cc0e4b0cd04f6f9317e81a8c150b1288ea | |
parent | 5acbd709c18eab8ae455d0002892e756ed18fa13 (diff) | |
download | lvm2-b6dda4ade2bbf3ec98e10860213f345d15a28971.tar.gz |
lvchange: remove unneeded call
Sync is already happining in activate_and_wipe_lvlist().
-rw-r--r-- | tools/lvchange.c | 7 |
1 files changed, 0 insertions, 7 deletions
diff --git a/tools/lvchange.c b/tools/lvchange.c index 7d0ec8ffd..e9f0f7c9a 100644 --- a/tools/lvchange.c +++ b/tools/lvchange.c @@ -436,13 +436,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.", |