diff options
author | Dave Wysochanski <dwysocha@redhat.com> | 2008-12-01 20:14:33 +0000 |
---|---|---|
committer | Dave Wysochanski <dwysocha@redhat.com> | 2008-12-01 20:14:33 +0000 |
commit | 9d9589d173ae67329e419a99b8155f44ca7525c8 (patch) | |
tree | f60a7d5868da9048ec9fd0393e7dc55fa925bf03 /tools/reporter.c | |
parent | 89ef434fe02dfd8057d7da24c77872efc3ae555d (diff) | |
download | lvm2-9d9589d173ae67329e419a99b8155f44ca7525c8.tar.gz lvm2-9d9589d173ae67329e419a99b8155f44ca7525c8.tar.xz lvm2-9d9589d173ae67329e419a99b8155f44ca7525c8.zip |
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.
Diffstat (limited to 'tools/reporter.c')
0 files changed, 0 insertions, 0 deletions