Skip to contentSkip to conversation

LVM2/tools vgextend.c

PATCH [email protected] 1 participant 1 message Oct 18, 2010

lore
Share & tools
lore
#0 lore raw

CVSROOT: /cvs/lvm2
Module name: LVM2
Changes by: mornfall at sourceware.org 2010-10-18 17:27:10

Modified files:
tools : vgextend.c

Log message:
Avoid an extraneous orphans unlock in vgextend --restoremissing.

Patches:
http://sourceware.org/cgi-bin/cvsweb.cgi/LVM2/tools/vgextend.c.diff?cvsroot=lvm2&r1=1.60&r2=1.61

tools/vgextend.c +2 -1
@@ -133,7 +133,8 @@
 	r = ECMD_PROCESSED;
 
 bad:
-	unlock_vg(cmd, VG_ORPHANS);
+	if (!arg_count(cmd, restoremissing_ARG))
+		unlock_vg(cmd, VG_ORPHANS);
 	unlock_and_release_vg(cmd, vg, vg_name);
 	return r;
 }