]> sourceware.org Git - lvm2.git/commit
device_id: improve searched_devnames temp file
authorDavid Teigland <teigland@redhat.com>
Thu, 2 Nov 2023 19:54:31 +0000 (14:54 -0500)
committerDavid Teigland <teigland@redhat.com>
Thu, 9 Nov 2023 19:14:55 +0000 (13:14 -0600)
commitde2b11f39aadeddc6a54657e2bfd35190df11879
tree7ec2bfcd0c9dcf1df188ad8535140152febd04d7
parent2b7c8328474b5f5cb9b6c79ec5578da592f9b3dc
device_id: improve searched_devnames temp file

Include info in the temp file to confirm that it should be used.
The temp file is meant to suppress repeated, identical searches
for the same PVIDs on the same set of devices.  Write to the file
a count and hash of the missing PVIDs and a count and hash of the
devices to search.  A subsequent command will ignore and remove
the temp file if any of these values differ.  We don't want to
suppress a search if a change has occured, and a missing PV could
be found by scanning devices.
lib/device/device_id.c
This page took 0.035696 seconds and 5 git commands to generate.