]> sourceware.org Git - lvm2.git/commit
dev-cache: iterate devices in sysfs for VGID/LVID index if obtain_device_list_from_udev=0
authorPeter Rajnoha <prajnoha@redhat.com>
Fri, 1 Apr 2016 09:34:09 +0000 (11:34 +0200)
committerPeter Rajnoha <prajnoha@redhat.com>
Fri, 1 Apr 2016 12:49:39 +0000 (14:49 +0200)
commit15d1824facce1ac38c2669b17c8c0965b8c18f3e
treefefe58cee3ba10569d182278c1cf5b8f339ec3da
parent7ed5a65ee5ccb92de388977cff0dc697045ffc09
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).
lib/device/dev-cache.c
This page took 0.040029 seconds and 5 git commands to generate.