1
0
mirror of git://sourceware.org/git/lvm2.git synced 2024-12-21 13:34:40 +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 18a60c6340
commit 39198eb2ce

View File

@ -8598,6 +8598,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));