Whamcloud - gitweb
EX-7683 utils: always try to use our own lz4/lz4hc
authorSebastien Buisson <sbuisson@ddn.com>
Tue, 27 Jun 2023 15:50:03 +0000 (15:50 +0000)
committerAndreas Dilger <adilger@whamcloud.com>
Thu, 6 Jul 2023 04:15:32 +0000 (04:15 +0000)
commit587f2b7cf25ff8799b5d0f07a27d087adb47d6d1
treecc890b6438c2e611b5e76fedbd508e04abf19768
parentddc41d23e7f25247a2604f895c10dd7eba54fe5c
EX-7683 utils: always try to use our own lz4/lz4hc

lz4/lz4hc provided by the kernel do not grok a compression level.
The built-in lz4/lz4hc do, so always build them as dedicated kernel
modules llz4.ko and llz4hc.ko, with the same .cra_name but with a
slightly higher .cra_priority = 110, so that they are preferred over
the in-kernel modules if any.

And try to manually load the llz4/llz4hc kernel modules when a file
requires compression with the corresponding alg. This is a "one-shot"
try that allows us to prefer our modules that has level support, but
continues to at least compress/decompress files even if our own
modules are not available.

Signed-off-by: Sebastien Buisson <sbuisson@ddn.com>
Change-Id: I0bdf267f998e21df81e460250a653aed34e3215d
Reviewed-on: https://review.whamcloud.com/c/ex/lustre-release/+/51474
Tested-by: jenkins <devops@whamcloud.com>
Tested-by: Maloo <maloo@whamcloud.com>
Reviewed-by: Andreas Dilger <adilger@whamcloud.com>
12 files changed:
config/lustre-build.m4
debian/dkms.conf.in
lustre/autoconf/lustre-core.m4
lustre/include/lustre_crypto.h
lustre/lz4/Makefile.in
lustre/lz4/autoMakefile.am
lustre/lz4/lz4.c [moved from lustre/lz4/llz4.c with 98% similarity]
lustre/lz4/lz4hc.c [moved from lustre/lz4/llz4hc.c with 97% similarity]
lustre/osc/osc_compress.c
lustre/scripts/dkms.mkconf
lustre/scripts/lustre_rmmod
lustre/tests/kernel/kcompr.c