On Tue, 1 Apr 2025 at 00:57, David Sterba <dsterba@xxxxxxx> wrote:[...]
I thought this was solid. Or would you rather bail out with -EINVAL?
I prefer to bail out with -EINVAL, but it's only my personal choice.
I tend to agree with you, the idea for the alias was based on feedback
that upstream zstd calls the levels fast, not by the negative numbers.
So I think we stick to the zstd: and zstd-fast: prefixes followed only
by the positive numbers.
Hmm, so for zlib and zstd if the level is out of range, it's just
clipped and not failed as invalid. I guess zstd-fast should also do
the same to be consistent.
We can make this change before 6.15 final so it's not in any released
kernel and we don't have to deal with compatibility.