mirror of
git://sourceware.org/git/lvm2.git
synced 2024-12-21 13:34:40 +03:00
a9940bd3c9
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. |
||
---|---|---|
.. | ||
.exported_symbols | ||
Doxyfile | ||
liblvm2app.pc.in | ||
lvm2app.h | ||
lvm_base.c | ||
lvm_lv.c | ||
lvm_misc.c | ||
lvm_misc.h | ||
lvm_prop_fields.h | ||
lvm_prop.c | ||
lvm_prop.h | ||
lvm_pv.c | ||
lvm_vg.c | ||
Makefile.in |