mirror of
git://sourceware.org/git/lvm2.git
synced 2024-10-30 06:26:11 +03:00
796461a912
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. |
||
---|---|---|
.. | ||
.gitignore | ||
clvm.h | ||
clvmd-cman.c | ||
clvmd-command.c | ||
clvmd-common.h | ||
clvmd-comms.h | ||
clvmd-corosync.c | ||
clvmd-openais.c | ||
clvmd-singlenode.c | ||
clvmd.c | ||
clvmd.h | ||
lvm-functions.c | ||
lvm-functions.h | ||
Makefile.in | ||
refresh_clvmd.c | ||
refresh_clvmd.h |