]> sourceware.org Git - lvm2.git/commit
lvmlockd: fix metadata validation when rescanning VG
authorDavid Teigland <teigland@redhat.com>
Tue, 13 Sep 2016 21:50:47 +0000 (16:50 -0500)
committerDavid Teigland <teigland@redhat.com>
Wed, 14 Sep 2016 15:43:33 +0000 (10:43 -0500)
commitd455300d7baff341f1c7fe5776d975369dd3a23a
treee8d9b60cf2e0094796bedd681a72713db16c9dce
parent629059ee84e83b9d013d80e0b382a3474b30c7a4
lvmlockd: fix metadata validation when rescanning VG

When rescanning a VG from disk, the metadata read from
each PV was compared as a sanity check.  The comparison
is done by exporting the vg metadata from each dev to
a config tree, and then comparing the config trees.
The function to create the config tree inserts
extraneous information along with the actual VG metadata.
This extra info includes creation_time.  The config
trees for two devs can easily be created one second
apart in which case the different creation_times would
cause the metadata comparison to fail.  The fix is to
exclude the extraneous info from the metadata comparison.
lib/cache/lvmetad.c
This page took 0.039821 seconds and 5 git commands to generate.