Whamcloud - gitweb
EX-6269 obd: add 'lvl' for best and fast
authorPatrick Farrell <pfarrell@whamcloud.com>
Tue, 9 Jan 2024 23:20:05 +0000 (18:20 -0500)
committerAndreas Dilger <adilger@whamcloud.com>
Sat, 13 Jan 2024 02:43:48 +0000 (02:43 +0000)
commit4b56f941f86786c072686043716177836020b4d3
treed56661d6e2164cb12057b3002717237894effa45
parent729efcbc5fe83cfa56458e206bc2baf510a160bc
EX-6269 obd: add 'lvl' for best and fast

'best' and 'fast' compression types must also set a level,
because not all levels are supported by all algorithms.

Rather than trying to be clever, just use simple universally
supported values, except for lz4fast, where we special case
this, because otherwise '0' is the slowest setting (and
lz4fast is likely to remain our default fastest).

Signed-off-by: Patrick Farrell <pfarrell@whamcloud.com>
Change-Id: I7c29659d4f027af2e44285ae38e4c9d91e35509a
Reviewed-on: https://review.whamcloud.com/c/ex/lustre-release/+/53600
Tested-by: jenkins <devops@whamcloud.com>
Tested-by: Maloo <maloo@whamcloud.com>
Reviewed-by: Sebastien Buisson <sbuisson@ddn.com>
Reviewed-by: Andreas Dilger <adilger@whamcloud.com>
lustre/include/lustre_compr.h
lustre/include/uapi/linux/lustre/lustre_user.h
lustre/obdclass/lustre_compr.c
lustre/ofd/ofd_compress.c
lustre/osc/osc_compress.c