LVM2 ./WHATS_NEW tools/vgcreate.c
CVSROOT: /cvs/lvm2
Module name: LVM2
Changes by: wysochanski at sourceware.org 2008-12-01 20:14:33
Modified files:
. : WHATS_NEW
tools : vgcreate.c
Log message:
Fix vgcreate race which could allow two parallel vgcreates to succeed, with the second vgcreate overwriting the first.
Obtain lock before calling vg_create(), which checks for existence of vgname and fails if it already exists.
Patches:
http://sourceware.org/cgi-bin/cvsweb.cgi/LVM2/WHATS_NEW.diff?cvsroot=lvm2&r1=1.1002&r2=1.1003
http://sourceware.org/cgi-bin/cvsweb.cgi/LVM2/tools/vgcreate.c.diff?cvsroot=lvm2&r1=1.57&r2=1.58
WHATS_NEW +1 -0
@@ -1,5 +1,6 @@ Version 2.02.44 - ==================================== + Fix race in vgcreate that would result in second caller overwriting first. Fix uninitialised lv_count in vgdisplay -c. Don't skip updating pvid hash when lvmcache_info struct got swapped. Add tinfo to termcap search path for pld-linux.
tools/vgcreate.c +22 -21
83 lines not on this page · raw message