mirror of
git://sourceware.org/git/lvm2.git
synced 2024-12-21 13:34:40 +03:00
lvmapp: do not unlock not locked VGs
After recent changes this seems to give some help, explore more...
This commit is contained in:
parent
99cd7108d3
commit
fb0aca86f8
@ -186,6 +186,8 @@ int lvm_vg_close(vg_t vg)
|
||||
struct saved_env e = store_user_env(vg->cmd);
|
||||
if (vg_read_error(vg) == FAILED_LOCKING)
|
||||
release_vg(vg);
|
||||
else if (!lvmcache_vgname_is_locked(vg->name))
|
||||
release_vg(vg);
|
||||
else
|
||||
unlock_and_release_vg(vg->cmd, vg, vg->name);
|
||||
restore_user_env(&e);
|
||||
|
Loading…
Reference in New Issue
Block a user