1
0
mirror of git://sourceware.org/git/lvm2.git synced 2024-12-21 13:34:40 +03:00
lvm2/lib
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
..
activate label: cache dm device list 2021-12-20 16:13:28 +01:00
cache handle duplicate vgids 2022-01-13 10:01:24 -06:00
cache_segtype gcc: remove invalid attribute 2021-09-13 12:34:41 +02:00
commands Revert "pvcreate: overwrite partition header with -f" 2022-01-18 12:15:03 -06:00
config asan: fix some reports from libasan 2022-02-07 20:02:11 +01:00
datastruct cleanup: eliminate unused assign 2021-03-11 00:18:01 +01:00
device devices file: do not clear PVID of unread devices 2022-02-10 14:16:04 -06:00
display gcc-fanalyzer: helping understand answer is not null 2021-09-21 21:03:47 +02:00
error device_mapper: remove dbg_malloc. 2018-06-08 13:40:53 +01:00
filters Revert "pvcreate: overwrite partition header with -f" 2022-01-18 12:15:03 -06:00
format_text asan: fix some reports from libasan 2022-02-07 20:02:11 +01:00
freeseg device_mapper: remove dbg_malloc. 2018-06-08 13:40:53 +01:00
integrity cleanup: no backtraces needed after log_error 2021-03-10 01:11:52 +01:00
label devices file: do not clear PVID of unread devices 2022-02-10 14:16:04 -06:00
locking label: cache dm device list 2021-12-20 16:13:28 +01:00
log print warning about unrecognized journal option value 2021-12-02 12:40:52 -06:00
lvmpolld device usage based on devices file 2021-02-23 16:43:32 -06:00
metadata asan: fix some reports from libasan 2022-02-07 20:02:11 +01:00
mirror lv_info: missing check for info.exists 2021-03-14 16:34:38 +01:00
misc utils: define macro for ffs 2021-09-27 18:56:14 +02:00
mm debug: change message level 2021-09-15 15:24:56 +02:00
notify build: Don't generate symlinks in include/ dir 2018-05-14 10:30:20 +01:00
properties build: Don't generate symlinks in include/ dir 2018-05-14 10:30:20 +01:00
raid cleanup: reduce code dupliction 2021-03-19 23:21:18 +01:00
report cov: remove unused variable setting 2021-09-13 12:34:41 +02:00
snapshot typo: fixes 2021-02-08 23:53:41 +01:00
striped device_mapper: remove dbg_malloc. 2018-06-08 13:40:53 +01:00
thin targets: use target_present_version 2021-02-08 23:43:38 +01:00
unknown device_mapper: remove dbg_malloc. 2018-06-08 13:40:53 +01:00
uuid asan: fix some reports from libasan 2022-02-07 20:02:11 +01:00
vdo vdo: just one probe is enough 2021-02-17 11:21:35 +01:00
writecache typo: fixes 2021-02-08 23:53:41 +01:00
zero device_mapper: remove dbg_malloc. 2018-06-08 13:40:53 +01:00
Makefile.in move code from pvscan.c to online.c 2021-11-04 11:09:29 -05:00