1
0
mirror of git://sourceware.org/git/lvm2.git synced 2024-12-22 17:35:59 +03:00
lvm2/lib/metadata
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
..
cache_manip.c cache: ensure there is no NULL str 2015-11-09 17:04:10 +01:00
lv_alloc.h thin: simplify thin volume creation 2014-10-26 18:37:13 +01:00
lv_manip.c lvrename: always allow to rename pools 2015-12-10 21:01:24 +01:00
lv.c cleanup: check LVs in one statement 2015-11-13 11:17:06 +01:00
lv.h cleanup: rename lv_ondisk to lv_committed 2015-11-25 11:39:26 +01:00
merge.c pool: validate pool_metadata has proper suffix 2015-09-11 21:52:27 +02:00
metadata-exported.h system_id: refactor check for allowed system_id 2015-11-30 11:46:55 -06:00
metadata.c vgrename: use process_each_vg 2015-12-14 14:26:47 -06:00
metadata.h cleanup: move towards using direct LV pointers 2015-11-23 23:42:59 +01:00
mirror.c pvmove: Remove unused find_pvmove_lv_from_pvname. 2015-11-13 18:06:08 +00:00
pool_manip.c cleanup: use display_lvname in pmspare 2015-11-18 22:17:26 +01:00
pv_alloc.h cleanup: self compilable headers 2013-12-12 13:28:19 +01:00
pv_manip.c pvremove: make sure even invalid info is removed from lvmcache on pvremove 2015-10-23 15:48:06 +02:00
pv_map.c raid_manip: v2 fix multi-segment misallocation on 'lvconvert --repair' 2015-01-16 13:44:16 +01:00
pv_map.h Track unreserved space for all alloc policies and then permit NORMAL to place 2012-02-01 02:10:45 +00:00
pv.c pv: add 'mem' arg for pv_uuid_dup and pv_name_dup 2015-09-21 14:21:42 +02:00
pv.h pv: add 'mem' arg for pv_uuid_dup and pv_name_dup 2015-09-21 14:21:42 +02:00
raid_manip.c raid: drop unneeded NULL test 2015-11-17 19:01:25 +01:00
replicator_manip.c macros: Wrap PRI with FMT. 2015-07-06 15:09:17 +01:00
segtype.c clean: remove unneeded assign 2013-06-17 09:34:56 +02:00
segtype.h lib: pass mem pool to check_transient_status 2015-12-01 13:01:28 +01:00
snapshot_manip.c segtypes: Use SEG_TYPE_NAME_ string constants. 2015-09-22 19:04:12 +01:00
thin_manip.c cleanup: use same type 2015-10-29 12:14:20 +01:00
vg.c cleanup: rename vg_ondisk to vg_committed 2015-11-25 11:11:21 +01:00
vg.h cleanup: rename vg_ondisk to vg_committed 2015-11-25 11:11:21 +01:00