1
0
mirror of git://sourceware.org/git/lvm2.git synced 2024-10-30 06:26:11 +03:00
lvm2/daemons/clvmd
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
..
.gitignore gitignore: Update for in-place build. 2015-07-27 13:18:35 +01:00
clvm.h cleanup: self compilable headers 2013-12-12 13:28:19 +01:00
clvmd-cman.c coverity: fix issues reported by coverity 2014-06-24 14:58:53 +02:00
clvmd-command.c clvmd: Fix freeze if client dies holding locks. 2015-07-23 23:10:16 +01:00
clvmd-common.h include: Standardise around new tool.h. 2015-07-06 17:30:18 +01:00
clvmd-comms.h Restart CLVMD with same cluster manager 2011-09-25 19:37:00 +00:00
clvmd-corosync.c cleanup: clvmd move destroy_lvhash into main 2014-03-21 22:29:25 +01:00
clvmd-openais.c macros: Wrap PRI with FMT. 2015-07-06 15:09:17 +01:00
clvmd-singlenode.c clvmd: singlenode signals only when lock changes 2015-04-08 23:19:34 +02:00
clvmd.c clvmd: remove -v option from getopt 2015-11-16 01:15:03 +01:00
clvmd.h cleanup: clvmd drop unused enum state 2014-04-14 13:02:27 +02:00
lvm-functions.c vgrename: use process_each_vg 2015-12-14 14:26:47 -06:00
lvm-functions.h CLVMD bugfix support for args -S -E 2011-09-24 20:48:34 +00:00
Makefile.in makefiles: drop DEBUG mangling 2015-05-14 00:19:33 +02:00
refresh_clvmd.c clmvd: fix responce status 2013-04-21 22:54:42 +02:00
refresh_clvmd.h Add -S command to clvmd, so it can restart itself and still 2010-04-20 14:07:37 +00:00