1
0
mirror of git://sourceware.org/git/lvm2.git synced 2024-10-28 11:55:55 +03:00
lvm2/lib/cache
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
..
lvmcache.c vg_read: look up vgid from name 2015-12-01 09:18:48 -06:00
lvmcache.h vg_read: look up vgid from name 2015-12-01 09:18:48 -06:00
lvmetad.c lvmcache: new function to check if VG is foreign 2015-11-30 11:54:56 -06:00
lvmetad.h lvmcache: new function to check if VG is foreign 2015-11-30 11:54:56 -06:00