mirror of
git://sourceware.org/git/lvm2.git
synced 2024-12-21 13:34:40 +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. |
||
---|---|---|
.. | ||
.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 |