1
0
mirror of git://sourceware.org/git/lvm2.git synced 2025-02-24 17:57:48 +03:00
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
..
2015-12-01 09:18:48 -06:00
2015-11-16 01:16:11 +01:00
2015-12-01 09:18:48 -06:00
2015-12-01 13:03:16 +01:00
2015-11-23 23:39:01 +01:00
2015-07-06 15:09:17 +01:00
2015-11-09 10:19:20 +01:00
2014-10-30 23:58:49 +01:00
2015-09-18 14:19:32 +01:00