1
0
mirror of git://sourceware.org/git/lvm2.git synced 2024-12-21 13:34:40 +03:00
lvm2/lib/device
Peter Rajnoha 15d1824fac dev-cache: iterate devices in sysfs for VGID/LVID index if obtain_device_list_from_udev=0
If obtain_device_list_from_udev=0, LVM can make use of persistent .cache
file. This cache file contains only devices which underwent filters in
previous LVM command run. But we need to iterate over all block devices
to create the VGID/LVID index completely for the device mismatch check
to be complete as well.

This patch iterates over block devices found in sysfs to generate the
VGID/LVID index in dev cache if obtain_device_list_from_udev=0
(if obtain_device_list_from_udev=1, we always read complete list of
block devices from udev and we ignore .cache file so we don't need
to look in sysfs for the complete list).
2016-04-01 14:49:39 +02:00
..
dev-cache.c dev-cache: iterate devices in sysfs for VGID/LVID index if obtain_device_list_from_udev=0 2016-04-01 14:49:39 +02:00
dev-cache.h dev-cache: also index VGIDs and LVIDs if using persistent .cache file 2016-03-30 11:00:01 +02:00
dev-dasd.c doc: change fsf address 2016-01-21 12:11:37 +01:00
dev-ext-udev-constants.h filters: partitioned: fix partition table filter with external_device_info_source="udev" and blkid<2.20 2016-02-02 13:28:11 +01:00
dev-ext.c doc: change fsf address 2016-01-21 12:11:37 +01:00
dev-io.c device: add DEV_OPEN_FAILURE flag 2016-03-21 11:06:05 +01:00
dev-luks.c doc: change fsf address 2016-01-21 12:11:37 +01:00
dev-md.c gcc: logical-op warning go away 2016-02-23 14:41:24 +01:00
dev-swap.c doc: change fsf address 2016-01-21 12:11:37 +01:00
dev-type.c pre-release 2016-03-11 00:19:16 +00:00
dev-type.h cleanup: use braces around macro params 2016-02-23 21:40:17 +01:00
device-types.h doc: change fsf address 2016-01-21 12:11:37 +01:00
device.h dev: detect mismatch between devices used and devices assumed for an LV 2016-03-21 11:40:40 +01:00