1
0
mirror of git://sourceware.org/git/lvm2.git synced 2024-12-21 13:34:40 +03:00

lvchange: remove unneeded call

Sync is already happining in activate_and_wipe_lvlist().
This commit is contained in:
Zdenek Kabelac 2021-02-14 17:27:45 +01:00
parent 096edeee71
commit f87ff95e32

View 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.",