1
0
mirror of git://sourceware.org/git/lvm2.git synced 2025-01-18 10:04:20 +03:00
lvm2/lib/metadata
David Teigland 88cef47b18 vg_read: look up vgid from name
After recent changes to process_each, vg_read() is usually
given both the vgname and vgid for the intended VG.

However, in some cases vg_read() is given a vgid with
no vgname, or is given a vgname with no vgid.

When given a vgid with no vgname, vg_read() uses lvmcache
to look up the vgname using the vgid.  If the vgname is
not found, vg_read() fails.

When given a vgname with no vgid, vg_read() should also
use lvmcache to look up the vgid using the vgname.
If the vgid is not found, vg_read() fails.

If the lvmcache lookup finds multiple vgids for the
vgname, then the lookup fails, causing vg_read() to fail
because the intended VG is uncertain.

Usually, both vgname and vgid for the intended VG are passed
to vg_read(), which means the lvmcache translations
between vgname and vgid are not done.
2015-12-01 09:18:48 -06:00
..
2014-10-26 18:37:13 +01:00
2015-11-13 11:18:27 +01:00
2015-11-13 11:17:06 +01:00
2015-11-25 11:39:26 +01:00
2015-12-01 09:18:48 -06:00
2013-12-12 13:28:19 +01:00
2015-11-17 19:01:25 +01:00
2015-07-06 15:09:17 +01:00
2013-06-17 09:34:56 +02:00
2015-10-29 12:14:20 +01:00
2015-11-25 11:11:21 +01:00
2015-11-25 11:11:21 +01:00