diff options
author | Paul Zuchowski <[email protected]> | 2020-02-10 18:00:05 -0400 |
---|---|---|
committer | GitHub <[email protected]> | 2020-02-10 14:00:05 -0800 |
commit | bc67cba7c0f8b860746b3c80251fc8a968600d61 (patch) | |
tree | 4578d49cc65178d3fa98c3deaa1bd1adfa226c0f /include | |
parent | dda702fd16bafac1ecb081590f6b00eea8a1136b (diff) |
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 <[email protected]>
Reviewed-by: Brian Behlendorf <[email protected]>
Signed-off-by: Paul Zuchowski <[email protected]>
Closes #9640
Closes #9729
Diffstat (limited to 'include')
-rw-r--r-- | include/sys/zio.h | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/include/sys/zio.h b/include/sys/zio.h index f78b02fd5..368d8c149 100644 --- a/include/sys/zio.h +++ b/include/sys/zio.h @@ -516,6 +516,12 @@ struct zio { taskq_ent_t io_tqent; }; +enum blk_verify_flag { + BLK_VERIFY_ONLY, + BLK_VERIFY_LOG, + BLK_VERIFY_HALT +}; + extern int zio_bookmark_compare(const void *, const void *); extern zio_t *zio_null(zio_t *pio, spa_t *spa, vdev_t *vd, @@ -626,6 +632,9 @@ extern void zio_suspend(spa_t *spa, zio_t *zio, zio_suspend_reason_t); extern int zio_resume(spa_t *spa); extern void zio_resume_wait(spa_t *spa); +extern boolean_t zfs_blkptr_verify(spa_t *spa, const blkptr_t *bp, + boolean_t config_held, enum blk_verify_flag blk_verify); + /* * Initial setup and teardown. */ |