mirror of
git://sourceware.org/git/lvm2.git
synced 2024-12-21 13:34:40 +03:00
d59382c772
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.) |
||
---|---|---|
.. | ||
bcache-utils.c | ||
bcache.c | ||
bcache.h | ||
dev-cache.c | ||
dev-cache.h | ||
dev-dasd.c | ||
dev-ext-udev-constants.h | ||
dev-ext.c | ||
dev-io.c | ||
dev-luks.c | ||
dev-lvm1-pool.c | ||
dev-md.c | ||
dev-mpath.c | ||
dev-swap.c | ||
dev-type.c | ||
dev-type.h | ||
device_id.c | ||
device_id.h | ||
device-types.h | ||
device.h | ||
online.c | ||
online.h |