mirror of
git://sourceware.org/git/lvm2.git
synced 2024-12-21 13:34:40 +03:00
d19235993e
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. |
||
---|---|---|
.. | ||
cache.c |