1
0
mirror of git://sourceware.org/git/lvm2.git synced 2024-12-22 17:35:59 +03:00

lvcreate: add extra synchronization at error path

Put explict udev synchronization before we try to deactive devices.
This commit is contained in:
Zdenek Kabelac 2020-09-04 18:08:59 +02:00
parent b490cddfbc
commit 238da8ddd9

View File

@ -8150,6 +8150,9 @@ out:
return lv;
deactivate_and_revert_new_lv:
if (!sync_local_dev_names(lv->vg->cmd))
log_error("Failed to sync local devices before reverting %s.",
display_lvname(lv));
if (!deactivate_lv(cmd, lv)) {
log_error("Unable to deactivate failed new LV %s. "
"Manual intervention required.", display_lvname(lv));