]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
Fix zdb -R with 'b' flag
authorPaul Zuchowski <31706010+PaulZ-98@users.noreply.github.com>
Mon, 10 Feb 2020 22:00:05 +0000 (18:00 -0400)
committerGitHub <noreply@github.com>
Mon, 10 Feb 2020 22:00:05 +0000 (14:00 -0800)
commitbc67cba7c0f8b860746b3c80251fc8a968600d61
tree4578d49cc65178d3fa98c3deaa1bd1adfa226c0f
parentdda702fd16bafac1ecb081590f6b00eea8a1136b
Fix zdb -R with 'b' flag

zdb -R :b fails due to the indirect block being compressed,
and the 'b' and 'd' flag not working in tandem when specified.
Fix the flag parsing code and create a zfs test for zdb -R
block display.  Also fix the zio flags where the dotted notation
for the vdev portion of DVA (i.e. 0.0:offset:length) fails.

Reviewed-by: Ryan Moeller <ryan@iXsystems.com>
Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov>
Signed-off-by: Paul Zuchowski <pzuchowski@datto.com>
Closes #9640
Closes #9729
cmd/zdb/zdb.c
include/sys/zio.h
man/man8/zdb.8
module/zfs/zio.c
tests/runfiles/common.run
tests/zfs-tests/tests/functional/cli_root/zdb/Makefile.am
tests/zfs-tests/tests/functional/cli_root/zdb/zdb_display_block.ksh [new file with mode: 0755]