1
0
mirror of git://sourceware.org/git/lvm2.git synced 2025-11-24 08:23:49 +03:00

device_id: fix conditions for device_ids_refresh

Fix commit 847f1dd99c
"device_id: rewrite validation of devname entries"

which began calling device_ids_refresh() in cases where it
was unnecessary, leading to extra PV searches and warnings.
Specifically, a command like "lvs <vg>" would use the hints
file to scan only devices for the named VG.  This means that
scanning other PVs would be skipped, and device IDs of those
PVs could not be validated because there are no PVID values
to verify.  This missing info would cause messages about
the missing info, and would cause device_ids_refresh to
search for the PVs that had been intentionally skipped.
This commit is contained in:
David Teigland
2023-10-05 15:22:32 -05:00
parent bccfd92f4a
commit 1901a47df1
6 changed files with 82 additions and 77 deletions

View File

@@ -213,6 +213,7 @@ struct cmd_context {
unsigned device_ids_check_product_uuid:1;
unsigned device_ids_check_hostname:1;
unsigned device_ids_refresh_trigger:1;
unsigned device_ids_invalid:1;
/*
* Devices and filtering.