1
0
mirror of git://sourceware.org/git/lvm2.git synced 2024-12-21 13:34:40 +03:00
lvm2/lib/device
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
..
bcache-utils.c cov: ensure data is not derefenced 2021-09-20 14:26:09 +02:00
bcache.c cov: mask some warning about leakage 2021-09-20 14:26:09 +02:00
bcache.h bcache: use indirection table for fd 2020-09-18 15:10:11 -05:00
dev-cache.c hash: raise hash table size 2021-12-20 16:13:28 +01:00
dev-cache.h pvs_online: include devname in pvid files 2021-11-09 11:26:26 -06:00
dev-dasd.c cov: mask uninitialized value 2021-03-10 01:34:27 +01:00
dev-ext-udev-constants.h dev-type: check for DEVLINKS udev db variable existence if udev_device_get_is_initialized fn is not present 2016-09-06 13:21:29 +02:00
dev-ext.c build: Don't generate symlinks in include/ dir 2018-05-14 10:30:20 +01:00
dev-io.c make: opened can be needed for either defines case 2021-09-27 18:56:14 +02:00
dev-luks.c devices: rework libudev usage 2021-07-13 11:11:23 -05:00
dev-lvm1-pool.c build: Don't generate symlinks in include/ dir 2018-05-14 10:30:20 +01:00
dev-md.c devices: rework libudev usage 2021-07-13 11:11:23 -05:00
dev-mpath.c devices: exclude multipath components based on matching wwid 2021-11-18 17:41:00 -06:00
dev-swap.c devices: rework libudev usage 2021-07-13 11:11:23 -05:00
dev-type.c cov: add initilizer 2021-07-28 00:49:28 +02:00
dev-type.h devices: exclude multipath components based on matching wwid 2021-11-18 17:41:00 -06:00
device_id.c devices file: do not clear PVID of unread devices 2022-02-10 14:16:04 -06:00
device_id.h lvmdevices: make deldev work for missing device 2022-02-03 16:56:03 -06:00
device-types.h devices: recognise rbd (ceph rados block device) 2021-12-13 13:32:06 -06:00
device.h devices file: do not clear PVID of unread devices 2022-02-10 14:16:04 -06:00
online.c online files: fix vgname check 2021-11-12 11:52:36 -06:00
online.h pvs_online: include devname in pvid files 2021-11-09 11:26:26 -06:00