1
0
mirror of git://sourceware.org/git/lvm2.git synced 2025-02-28 05:57:49 +03:00
Peter Rajnoha b15ada28ed This is related to liblvm and its lvm_list_vg_names() and lvm_list_vg_uuids() functions
where we should not expose internal VG names/uuids (the ones with "#" prefix )through the
interface. Otherwise, we could end up with library users opening internal VGs which will
initiate locking mechanism that won't be cleaned up properly.

"#orphans_{lvm1, lvm2, pool}" names are treated in a special way, they are truncated first
to "orphans" and this is used as a part of the lock name then (e.g. while calling lvm_vg_open()).
When library user calls lvm_vg_close(), the original name "orphans_{lvm1, lvm2, pool}"
is used directly and therefore no unlock occurs.

We should exclude internal VG names and uuids in the lists provided by lvmcache:
lvmcache_get_vgids() and lvmcache_get_vgnames().
2010-02-03 14:08:39 +00:00
..
2004-03-26 14:51:23 +00:00
2008-01-30 14:00:02 +00:00
2008-01-30 14:00:02 +00:00
2009-09-26 00:29:13 +00:00
2009-01-20 20:37:41 +00:00
2008-01-30 14:00:02 +00:00
2010-01-19 01:10:46 +00:00
2009-12-11 13:16:37 +00:00
2008-01-30 14:00:02 +00:00