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 <[email protected]>

Reviewed-by: Chao Yu <[email protected]>

Thanks,

Reply via email to