1
0
mirror of git://sourceware.org/git/lvm2.git synced 2024-12-21 13:34:40 +03:00
lvm2/lib/activate
Zdenek Kabelac d19235993e cache: check module in modules builtin
Instead of parsing the whole /proc/kallsyms use faster variant
of using modprobe tool logic.

lvm2 here wants to know whether the particular DM cache policy is
present in the kernel - however since the cache policy does not have
any kernel module parameters and it can be built-in to a kernel
there is no /sys/modules directory in such case and we would need to call
modprobe everytime we want detect such case.

The old solution tried to look for particular kernel symbol
(and like not the right way, as smq_exit might be actually ommitted).

New version checks MODULES_PATH/`uname -r`/modules.builtin for
whether is present cache policy module instead of CPU expensive parsing
of kallsyms.
2024-02-19 14:20:39 +01:00
..
activate.c cache: check module in modules builtin 2024-02-19 14:20:39 +01:00
activate.h vdo: read live vdo size configuration 2023-01-16 12:37:40 +01:00
dev_manager.c vdo: read VDO stats via dm message 2024-02-19 14:20:39 +01:00
dev_manager.h vdo: read live vdo size configuration 2023-01-16 12:37:40 +01:00
fs.c cov: avoid using strcpy 2023-02-17 00:00:04 +01:00
fs.h build: Don't generate symlinks in include/ dir 2018-05-14 10:30:20 +01:00
targets.h doc: change fsf address 2016-01-21 12:11:37 +01:00