HomeFreeBSD

zstream decompress: fix decompress size and output

Description

zstream decompress: fix decompress size and output

This was incorrectly using the compressed length for the size of the
decompress buffer, and quietly doing nothing if the decompressor refused
to decompress the block because there wasn't enough space.

After that, it wasn't correctly rewriting the record to indicate
"not compressed".

So that's fixed now. Sigh.

Sponsored-by: Klara, Inc.
Sponsored-by: Wasabi Technology, Inc.
Signed-off-by: Rob Norris <rob.norris@klarasystems.com>

Details

Provenance
rob.norris_klarasystems.comAuthored on Jul 23 2024, 1:43 AM
Tony Hutter <hutter2@llnl.gov>Committed on Aug 22 2024, 11:22 PM
Parents
rGa9c94bea9fb3: zio_compress_data: limit dest length to ABD size
Branches
Unknown
Tags
Unknown