1
0
mirror of git://sourceware.org/git/lvm2.git synced 2024-12-21 13:34:40 +03:00
lvm2/lib/label
David Teigland d59382c772 devices file: do not clear PVID of unread devices
In a certain disconnected state, a block device is present on
the system, can be opened, reports a valid size, reports the
correct device id (wwid), and matches a devices file entry.
But, reading the device can still fail.  In this case,
device_ids_validate() was misinterpreting the read error as
the device having no data/label on it (and no PVID).
The validate function would then clear the PVID from the
devices file entry for the device, thinking that it was
fixing the devices file (making it consistent with the on disk
state.)  Fix this by not attempting to check and correct a
devices file entry that cannot be read.  Also make this case
explicit in the hints validation code (which was doing the
right thing but indirectly.)
2022-02-10 14:16:04 -06:00
..
hints.c devices file: do not clear PVID of unread devices 2022-02-10 14:16:04 -06:00
hints.h vgchange -aay: optimize device list using pvs_online files 2021-11-05 12:19:35 -05:00
label.c devices file: do not clear PVID of unread devices 2022-02-10 14:16:04 -06:00
label.h label: cache dm device list 2021-12-20 16:13:28 +01:00