This is the mail archive of the
lvm2-cvs@sourceware.org
mailing list for the LVM2 project.
LVM2/tools toollib.c
- From: mbroz at sourceware dot org
- To: lvm-devel at redhat dot com, lvm2-cvs at sourceware dot org
- Date: 10 Jun 2009 10:15:29 -0000
- Subject: LVM2/tools toollib.c
CVSROOT: /cvs/lvm2
Module name: LVM2
Changes by: mbroz@sourceware.org 2009-06-10 10:15:29
Modified files:
tools : toollib.c
Log message:
Unlock vg when requested automatic update failed.
(fixes previous commit)
Patches:
http://sourceware.org/cgi-bin/cvsweb.cgi/LVM2/tools/toollib.c.diff?cvsroot=lvm2&r1=1.156&r2=1.157
--- LVM2/tools/toollib.c 2009/06/05 20:00:52 1.156
+++ LVM2/tools/toollib.c 2009/06/10 10:15:28 1.157
@@ -497,8 +497,10 @@
unlock_and_release_vg(cmd, vg, vg_name);
dev_close_all();
log_error("Volume group %s inconsistent", vg_name);
- if (!(vg = recover_vg(cmd, vg_name, LCK_VG_WRITE)))
+ if (!(vg = recover_vg(cmd, vg_name, LCK_VG_WRITE))) {
+ unlock_vg(cmd, vg_name);
return ECMD_FAILED;
+ }
consistent = 1;
break;
}