mirror of
git://sourceware.org/git/lvm2.git
synced 2025-03-10 16:58:47 +03:00
lvchange: remove unneeded call
Sync is already happining in activate_and_wipe_lvlist().
This commit is contained in:
parent
096edeee71
commit
f87ff95e32
@ -410,13 +410,6 @@ static int _lvchange_resync(struct cmd_context *cmd, struct logical_volume *lv)
|
|||||||
if (!activate_and_wipe_lvlist(&device_list, 0))
|
if (!activate_and_wipe_lvlist(&device_list, 0))
|
||||||
return 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 */
|
/* Put metadata sub-LVs back in place */
|
||||||
if (!_attach_metadata_devices(seg, &device_list)) {
|
if (!_attach_metadata_devices(seg, &device_list)) {
|
||||||
log_error("Failed to reattach %s device after clearing.",
|
log_error("Failed to reattach %s device after clearing.",
|
||||||
|
Loading…
x
Reference in New Issue
Block a user