]> git.proxmox.com Git - mirror_zfs.git/commit - cmd/zdb/zdb.c
zio_decompress_data always ASSERTs successful decompression
authorPaul Zuchowski <31706010+PaulZ-98@users.noreply.github.com>
Tue, 10 Dec 2019 23:51:58 +0000 (18:51 -0500)
committerBrian Behlendorf <behlendorf1@llnl.gov>
Tue, 10 Dec 2019 23:51:58 +0000 (15:51 -0800)
commitf0bf4351767ab95b1b5e9baa5445db20ffacd00d
treeb828b618046572e894277fa706b80508647026f5
parentb119e2c6f185008001667a621521417111b21aa8
zio_decompress_data always ASSERTs successful decompression

This interferes with zdb_read_block trying all the decompression
algorithms when the 'd' flag is specified, as some are
expected to fail.  Also control the output when guessing
algorithms, try the more common compression types first, allow
specifying lsize/psize, and fix an uninitialized variable.

Reviewed-by: Ryan Moeller <ryan@ixsystems.com>
Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov>
Signed-off-by: Paul Zuchowski <pzuchowski@datto.com>
Closes #9612
Closes #9630
cmd/zdb/zdb.c
man/man8/zdb.8
module/zfs/zio_compress.c
tests/runfiles/common.run
tests/zfs-tests/tests/functional/cli_root/zdb/Makefile.am
tests/zfs-tests/tests/functional/cli_root/zdb/zdb_decompress.ksh [new file with mode: 0755]