1
0
mirror of git://sourceware.org/git/lvm2.git synced 2025-01-17 06:04:23 +03:00
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
..
2016-01-21 12:11:37 +01:00
2016-01-21 12:11:37 +01:00
2016-03-21 11:06:05 +01:00
2016-01-21 12:11:37 +01:00
2016-02-23 14:41:24 +01:00
2016-01-21 12:11:37 +01:00
2016-03-11 00:19:16 +00:00
2016-01-21 12:11:37 +01:00