aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBrian Behlendorf <[email protected]>2020-03-04 15:08:41 -0800
committerGitHub <[email protected]>2020-03-04 15:08:41 -0800
commitf49db9b50427565a263e219497f18165299dee87 (patch)
treecf0023107f276f3b0a4a71047c738d5688e602e7
parentd16c029f9997ba2a2f97baba839632cfb7c28aad (diff)
zio: dprintf_bp() if errors > 0 in zfs_blkptr_verify()
Also dprintf_bp() in case BLK_VERIFY_HALT of zfs_blkptr_verify_log() since dprintf_bp() in zfs_blkptr_verify() will never be executed. Reviewed-by: Brian Behlendorf <[email protected]> Reviewed-by: Paul Zuchowski <[email protected]> Signed-off-by: Justin Keogh <[email protected]> Closes #10086
-rw-r--r--module/zfs/zio.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/module/zfs/zio.c b/module/zfs/zio.c
index bf6b5afab..de2e8e767 100644
--- a/module/zfs/zio.c
+++ b/module/zfs/zio.c
@@ -903,6 +903,7 @@ zfs_blkptr_verify_log(spa_t *spa, const blkptr_t *bp,
switch (blk_verify) {
case BLK_VERIFY_HALT:
+ dprintf_bp(bp, "blkptr at %p dprintf_bp():", bp);
zfs_panic_recover("%s: %s", spa_name(spa), buf);
break;
case BLK_VERIFY_LOG:
@@ -1029,6 +1030,8 @@ zfs_blkptr_verify(spa_t *spa, const blkptr_t *bp, boolean_t config_held,
bp, i, (longlong_t)offset);
}
}
+ if (errors > 0)
+ dprintf_bp(bp, "blkptr at %p dprintf_bp():", bp);
if (!config_held)
spa_config_exit(spa, SCL_VDEV, bp);