1
0
mirror of git://sourceware.org/git/lvm2.git synced 2024-12-22 17:35:59 +03:00
lvm2/liblvm
David Teigland 796461a912 vgrename: use process_each_vg
Use process_each_vg() to lock and read the old VG,
and then call the main vgrename code.

When real VG names are used (not a UUID in place of the
old name), the command still pre-locks the new name
(when strcmp wants it locked first), before calling
process_each_vg on the old name.

In the case where the old name is replaced with a UUID,
process_each_vg now translates that UUID into the real
VG name, which it locks and reads.  In this case, we
cannot do pre-locking to maintain lock ordering because
the old name is unknown.  So, in this case the strcmp
based lock ordering is suppressed and the old name is
always locked first.  This opens a remote chance for
lock ordering conflict between racing vgrenames between
two names where one or both commands use the UUID.
2015-12-14 14:26:47 -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 lvm2app: Add signed numerical property values 2015-05-06 08:51:04 -05:00
lvm_base.c toolcontext: add switches to create_toolcontext for connections and filters init 2015-07-30 13:54:09 +02:00
lvm_lv.c segtypes: Use SEG_TYPE_NAME_ string constants. 2015-09-22 19:04:12 +01:00
lvm_misc.c lvm2app: Add signed numerical property values 2015-05-06 08:51:04 -05:00
lvm_misc.h liblvm: Save off and restore umask values 2013-12-20 13:36:22 -06:00
lvm_prop_fields.h lvm2app: Add ability to create PV with args 2013-11-19 14:40:34 -06:00
lvm_prop.c lvm2app: Add signed numerical property values 2015-05-06 08:51:04 -05:00
lvm_prop.h lvm2app: Add ability to create PV with args 2013-11-19 14:40:34 -06:00
lvm_pv.c pv: add 'mem' arg for pv_uuid_dup and pv_name_dup 2015-09-21 14:21:42 +02:00
lvm_vg.c vgrename: use process_each_vg 2015-12-14 14:26:47 -06:00
Makefile.in makefiles: better clean 2015-05-18 12:45:42 +02:00