1
0
mirror of git://sourceware.org/git/lvm2.git synced 2024-12-21 13:34:40 +03:00
lvm2/liblvm
David Teigland a9940bd3c9 vgcreate: use the common toollib pv create
Use the new pvcreate_each_device() function from
toollib, previously added for pvcreate, in place
of the old pvcreate_vol().

This also requires shifting the location where the
lock is acquired for the new VG name.  The lock for
the new VG is supposed to be acquired before pvcreate.
This means splitting the vg_lock_newname() out of
vg_create(), and calling vg_lock_newname() directly
before pvcreate, and then calling the remainder of
vg_create() after pvcreate.

The new function vg_lock_and_create() now does
vg_lock_newname() + vg_create(), like the previous
version of vg_create().

The lock on the new VG name is released before the
pvcreate and reacquired after the pvcreate because
pvcreate needs to reset lvmcache, which doesn't work
when locks are held.  An exception could likely be
made for the new VG name lock, which would allow
vgcreate to hold the new VG name lock across the
pvcreate step.
2016-02-25 09:14:09 -06:00
..
.exported_symbols Generate liblvm2app and libdevmapper exported symbols from header files. 2010-06-25 18:17:38 +00:00
Doxyfile Add Doxygen file for lvm2app to generate documentation from lvm2app.h. 2010-02-24 18:16:54 +00:00
liblvm2app.pc.in configure: add --enable-blkid_wiping 2013-11-27 15:48:16 +01:00
lvm2app.h doc: change fsf address 2016-01-21 12:11:37 +01:00
lvm_base.c doc: change fsf address 2016-01-21 12:11:37 +01:00
lvm_lv.c doc: change fsf address 2016-01-21 12:11:37 +01:00
lvm_misc.c doc: change fsf address 2016-01-21 12:11:37 +01:00
lvm_misc.h doc: change fsf address 2016-01-21 12:11:37 +01:00
lvm_prop_fields.h doc: change fsf address 2016-01-21 12:11:37 +01:00
lvm_prop.c doc: change fsf address 2016-01-21 12:11:37 +01:00
lvm_prop.h doc: change fsf address 2016-01-21 12:11:37 +01:00
lvm_pv.c doc: change fsf address 2016-01-21 12:11:37 +01:00
lvm_vg.c vgcreate: use the common toollib pv create 2016-02-25 09:14:09 -06:00
Makefile.in doc: change fsf address 2016-01-21 12:11:37 +01:00