From f87ff95e329fce701ec93888a9bea7e7da7151a1 Mon Sep 17 00:00:00 2001 From: Zdenek Kabelac Date: Sun, 14 Feb 2021 17:27:45 +0100 Subject: [PATCH] lvchange: remove unneeded call Sync is already happining in activate_and_wipe_lvlist(). --- tools/lvchange.c | 7 ------- 1 file changed, 7 deletions(-) diff --git a/tools/lvchange.c b/tools/lvchange.c index f37b68381..31633987b 100644 --- a/tools/lvchange.c +++ b/tools/lvchange.c @@ -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.", -- 2.43.5