]> 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)
commitbefcada36a6458986782569963972ea2ed7ccbe4
treef60a7d5868da9048ec9fd0393e7dc55fa925bf03
parentb71bf9332cd1a4bc09232061074216e69d577b84
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.033441 seconds and 5 git commands to generate.