]> sourceware.org Git - lvm2.git/commit
Fix vgcreate race which could allow two parallel vgcreates to succeed,
authorDave Wysochanski <dwysocha@redhat.com>
Mon, 1 Dec 2008 20:14:33 +0000 (20:14 +0000)
committerDave Wysochanski <dwysocha@redhat.com>
Mon, 1 Dec 2008 20:14:33 +0000 (20:14 +0000)
commit9d9589d173ae67329e419a99b8155f44ca7525c8
treef60a7d5868da9048ec9fd0393e7dc55fa925bf03
parent89ef434fe02dfd8057d7da24c77872efc3ae555d
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.
WHATS_NEW
tools/vgcreate.c
This page took 0.034081 seconds and 5 git commands to generate.