mirror of
git://sourceware.org/git/lvm2.git
synced 2024-12-21 13:34:40 +03:00
lvmlockd: fix reverting new lv in error path
The wrong name was being used to free the LV lock in lvmlockd in the error exit path.
This commit is contained in:
parent
4a01e4f389
commit
b9c1cef817
@ -8010,7 +8010,7 @@ deactivate_and_revert_new_lv:
|
||||
|
||||
revert_new_lv:
|
||||
lockd_lv(cmd, lv, "un", LDLV_PERSISTENT);
|
||||
lockd_free_lv(vg->cmd, vg, lp->lv_name, &lv->lvid.id[1], lv->lock_args);
|
||||
lockd_free_lv(vg->cmd, vg, lv->name, &lv->lvid.id[1], lv->lock_args);
|
||||
|
||||
/* FIXME Better to revert to backup of metadata? */
|
||||
if (!lv_remove(lv) || !vg_write(vg) || !vg_commit(vg))
|
||||
|
Loading…
Reference in New Issue
Block a user