1
0
mirror of git://sourceware.org/git/lvm2.git synced 2024-10-28 20:25:52 +03:00
lvm2/lib/device
Peter Rajnoha 42f04a0f77 dev-cache: skip VGID/LVID indexing if /sys/dev/block is not present
/sys/dev/block is available since kernel version 2.2.26 (~ 2008):
https://www.kernel.org/doc/Documentation/ABI/testing/sysfs-dev

The VGID/LVID indexing code relies on this feature so skip indexing
if it's not available to avoid error messages about inability to open
/sys/dev/block directory.

We're not going to provide fallback code to read the /sys/block/
instead in this case as that's not that efficient - it needs extra
reads for getting major:minor and reading partitions would also
pose further reads and that's not worth it.
2016-04-01 17:09:15 +02:00
..
dev-cache.c dev-cache: skip VGID/LVID indexing if /sys/dev/block is not present 2016-04-01 17:09:15 +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