summaryrefslogtreecommitdiffstats
path: root/man/man8
diff options
context:
space:
mode:
authorPaul Zuchowski <[email protected]>2019-11-27 13:08:18 -0500
committerBrian Behlendorf <[email protected]>2019-11-27 10:08:18 -0800
commit894f6696b4cf7cc2562da159ba5e6e8c806f35de (patch)
tree954bd2a467bf23573297d45d838a712eec7e3aff /man/man8
parent0c46813805f428038f0f5e2541cdab8034c2f082 (diff)
Add display of checksums to zdb -R
The function zdb_read_block (zdb -R) was always intended to have a :c flag which would read the DVA and length supplied by the user, and display the checksum. Since we don't know which checksum goes with the data, we should calculate and display them all. For each checksum in the table, read in the data at the supplied DVA:length, calculate the checksum, and display it. Update the man page and create a zfs test for the new feature. Reviewed-by: Brian Behlendorf <[email protected]> Reviewed-by: Kjeld Schouten <[email protected]> Signed-off-by: Paul Zuchowski <[email protected]> Closes #9607
Diffstat (limited to 'man/man8')
-rw-r--r--man/man8/zdb.82
1 files changed, 2 insertions, 0 deletions
diff --git a/man/man8/zdb.8 b/man/man8/zdb.8
index 50f600252..55689a994 100644
--- a/man/man8/zdb.8
+++ b/man/man8/zdb.8
@@ -249,6 +249,8 @@ and, optionally,
.Bl -tag -compact -width "b offset"
.It Sy b Ar offset
Print block pointer
+.It Sy c
+Calculate and display checksums
.It Sy d
Decompress the block. Set environment variable
.Nm ZDB_NO_ZLE