]> sourceware.org Git - lvm2.git/commit
Update _vg_read and _text_create_text_instance to use fid_add_mda[s].
authorDave Wysochanski <dwysocha@redhat.com>
Mon, 28 Jun 2010 20:35:17 +0000 (20:35 +0000)
committerDave Wysochanski <dwysocha@redhat.com>
Mon, 28 Jun 2010 20:35:17 +0000 (20:35 +0000)
commit4e7f1a3a9dfe298bdc08fb2efa32c7503058f3a5
tree8c43304d3116e36a4b2bba4722e65cb0527708bc
parent50e879ef5687ef39012063e4d97502dbe8ef12b2
Update _vg_read and _text_create_text_instance to use fid_add_mda[s].

When we are constructing the vg, we may need to adjust the list of
metadata_areas if there are ignored mdas.  At label read time, we
do not read the metadata of ignored mdas, and as a result, they do
not get placed on vg->fid->metadata_areas inside _text_create_text_instance
since lvmcache does not have these areas attached to vginfo->infos.
However, when we're checking the pvids inside _vg_read, after having
read another metadata area from another PV, we do have the opportunity
to update the metadata_area and metadata_areas_ignored lists based
on the read metadata_area.  We need accurate mda lists for the reporting
functions that count the ignored mdas, as well as general correctness
of mda balancing.

Signed-off-by: Dave Wysochanski <dwysocha@redhat.com>
lib/format_text/format-text.c
lib/metadata/metadata.c
This page took 0.031079 seconds and 5 git commands to generate.