]> sourceware.org Git - lvm2.git/commit
lvmlockd: fix dropping PVs in rescanning VG
authorDavid Teigland <teigland@redhat.com>
Fri, 17 Jun 2016 16:45:08 +0000 (11:45 -0500)
committerDavid Teigland <teigland@redhat.com>
Fri, 17 Jun 2016 17:21:09 +0000 (12:21 -0500)
commit899a4ca275543425ca60fe361bc13fbc5c90e741
tree9a7e8d8d53c97fbaccb077fa782ec143c3f6bade
parentab7ade40957812b948a63527d1023747f8336e56
lvmlockd: fix dropping PVs in rescanning VG

This fixes a problem in commit ae0a8740c.  The problem
in that commit was that all existing PVs are initially
dropped from lvmetad.  This works if the VG is updated
at the end, which replaces the dropped PVs, but if the
rescan finds that the VG seqno is unchanged, it leaves
the cached VG in place.  So, we should only drop the
existing PVs in lvmetad when the VG is going to be updated.
lib/cache/lvmetad.c
This page took 0.03777 seconds and 5 git commands to generate.