mirror of
git://sourceware.org/git/lvm2.git
synced 2025-01-05 13:18:20 +03:00
Implement ignore of mda if bit set by skipping r/w of metadata.
We implement ignore of an mda at label_read time by checking for the ignore bit, and then skipping the reading of the vgname and other information in the metadata. This will have an effect similar to a PV found with no mdas. Thus, it will look like an orphan in the cache until we scan the rest of the system and find a PV with metadata, and the mda will not be on the vg->fid->metadata_areas list so no read/writes will be done to the metadata area. Signed-off-by: Dave Wysochanski <dwysocha@redhat.com>
This commit is contained in:
parent
2f8e0473f4
commit
e6bd367b57
@ -311,6 +311,12 @@ static int _text_read(struct labeller *l, struct device *dev, void *buf,
|
|||||||
}
|
}
|
||||||
mda_set_ignored(mda, rlocn_is_ignored(mdah->raw_locns));
|
mda_set_ignored(mda, rlocn_is_ignored(mdah->raw_locns));
|
||||||
|
|
||||||
|
if (mda_is_ignored(mda)) {
|
||||||
|
if (!dev_close(mdac->area.dev))
|
||||||
|
stack;
|
||||||
|
continue;
|
||||||
|
}
|
||||||
|
|
||||||
if ((vgname = vgname_from_mda(info->fmt, mdah,
|
if ((vgname = vgname_from_mda(info->fmt, mdah,
|
||||||
&mdac->area,
|
&mdac->area,
|
||||||
&vgid, &vgstatus, &creation_host,
|
&vgid, &vgstatus, &creation_host,
|
||||||
|
Loading…
Reference in New Issue
Block a user