mirror of
https://git.proxmox.com/git/mirror_zfs.git
synced 2026-05-22 02:27:36 +03:00
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 <behlendorf1@llnl.gov> Reviewed-by: Kjeld Schouten <kjeld@schouten-lebbing.nl> Signed-off-by: Paul Zuchowski <pzuchowski@datto.com> Closes #9607
This commit is contained in:
committed by
Brian Behlendorf
parent
0c46813805
commit
894f6696b4
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user