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
This commit is contained in:
Paul Zuchowski
2020-02-10 18:00:05 -04:00
committed by GitHub
parent dda702fd16
commit bc67cba7c0
7 changed files with 376 additions and 117 deletions
+1 -1
View File
@@ -286,7 +286,7 @@ of the block to read and, optionally,
.Pp
.Bl -tag -compact -width "b offset"
.It Sy b Ar offset
Print block pointer
Print block pointer at hex offset
.It Sy c
Calculate and display checksums
.It Sy d