]> sourceware.org Git - lvm2.git/commit
lvmetad: pvscan: do not scan and read ignored MDAs from PVs
authorPeter Rajnoha <prajnoha@redhat.com>
Mon, 16 Mar 2015 16:00:36 +0000 (17:00 +0100)
committerPeter Rajnoha <prajnoha@redhat.com>
Mon, 16 Mar 2015 16:00:36 +0000 (17:00 +0100)
commit038013cf42710da3e815713c7e7482fca00e110b
tree384a4bbeb2855cba231b793398afb8d839a11fd3
parentff5217f85079fa8cc969e0a81a66f1e1bd6490b5
lvmetad: pvscan: do not scan and read ignored MDAs from PVs

Metadata areas which are marked as ignored should not be scanned
and read during pvscan --cache. Otherwise, this can cause lvmetad
to cache out-of-date metadata in case other PVs with fresh metadata
are missing by chance.

Make this to work like in non-lvmetad case where the behaviour would
be the same as if the PV was orphan (in case we have no other PVs
with valid non-ignored metadata areas).
WHATS_NEW
lib/cache/lvmetad.c
test/shell/lvmetad-pvscan-cache.sh
This page took 0.038105 seconds and 5 git commands to generate.