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
+2 -1
View File
@@ -101,7 +101,8 @@ tags = ['functional', 'clean_mirror']
[tests/functional/cli_root/zdb]
tests = ['zdb_001_neg', 'zdb_002_pos', 'zdb_003_pos', 'zdb_004_pos',
'zdb_005_pos', 'zdb_006_pos', 'zdb_checksum', 'zdb_decompress',
'zdb_object_range_neg', 'zdb_object_range_pos', 'zdb_objset_id']
'zdb_object_range_neg', 'zdb_object_range_pos', 'zdb_display_block',
'zdb_objset_id']
pre =
post =
tags = ['functional', 'cli_root', 'zdb']