]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
erofs: improve LZ4 error strings
authorGao Xiang <hsiangkao@linux.alibaba.com>
Fri, 19 Dec 2025 06:43:36 +0000 (14:43 +0800)
committerGao Xiang <hsiangkao@linux.alibaba.com>
Thu, 22 Jan 2026 16:00:50 +0000 (00:00 +0800)
commit48df6d1bc9d5e8d2d778c39d952c3d6cc39e5c73
tree17afddcb148e8aa1ee8c7109a0c6345e3f2c13cf
parent43ac93b5432c4aa826a19be95737af53c0f5c1e1
erofs: improve LZ4 error strings

Just like what was done for other algorithms, let's propagate detailed
error reasons for LZ4 instead of just -EFSCORRUPTED to users:

 "corrupted compressed data":
    the compressed data is malformed or
      destination buffer is not large enough

 "unexpected end of stream":
    the compressed stream ends normally, but without producing enough
    decompressed data.

 "compressed data start not found":
    can be returned by z_erofs_fixup_insize().

Reviewed-by: Chao Yu <chao@kernel.org>
Signed-off-by: Gao Xiang <hsiangkao@linux.alibaba.com>
fs/erofs/decompressor.c