1
0
mirror of git://sourceware.org/git/lvm2.git synced 2024-10-28 20:25:52 +03:00
lvm2/lib/format_text
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
..
archive.c cleanup: drop unneeded included header files 2012-08-23 14:37:20 +02:00
archiver.c archiver: fix reporting for check_current_backup 2015-12-04 22:10:30 +01:00
archiver.h vgconvert: Do not call lvmetad_vg_remove (path shared with vgcfgbackup). 2013-09-18 12:53:11 +02:00
export.c cleanup: do not test alloca for NULL 2015-11-09 10:22:51 +01:00
flags.c Add lvmlockd 2015-07-02 15:42:26 -05:00
format-text.c vgrename: use process_each_vg 2015-12-14 14:26:47 -06:00
format-text.h report: select: refactor: move str_list to libdm 2014-06-17 16:27:20 +02:00
import_vsn1.c cleanup: drop log_suppress(2) usage 2015-12-03 18:02:34 +01:00
import-export.h refactor: rename alloc_printed_tags fn to _alloc_printed_str_list and use it for string lists in general 2015-06-29 09:43:41 +02:00
import.c metadata: Reject lvmetad metadata extensions when reading from disk. 2015-06-10 16:25:57 +02:00
layout.h cache: Store metadata size and checksum. 2015-03-18 23:43:02 +00:00
text_export.h Move the core of the lib/config/config.c functionality into libdevmapper, 2011-08-30 14:55:15 +00:00
text_import.h cleanup: self compilable headers 2013-12-12 13:28:19 +01:00
text_label.c Revert "lvmcache: check for too long pvid" 2015-08-18 15:22:13 +02:00