[PATCH] erofs: improve LZ4 error strings
Chao Yu
chao at kernel.org
Thu Jan 22 15:21:28 AEDT 2026
On 12/19/2025 2:43 PM, Gao Xiang wrote:
> 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().
>
> Signed-off-by: Gao Xiang <hsiangkao at linux.alibaba.com>
Reviewed-by: Chao Yu <chao at kernel.org>
Thanks,
More information about the Linux-erofs
mailing list