HomeFreeBSD

Add display of checksums to zdb -R

Description

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

Details

Provenance
Paul Zuchowski <31706010+PaulZ-98@users.noreply.github.com>Authored on Nov 27 2019, 6:08 PM
Brian Behlendorf <behlendorf1@llnl.gov>Committed on Nov 27 2019, 6:08 PM
Parents
rG0c46813805f4: Check for unlinked znodes after igrab()
Branches
Unknown
Tags
Unknown

Event Timeline

Brian Behlendorf <behlendorf1@llnl.gov> committed rG894f6696b4cf: Add display of checksums to zdb -R (authored by Paul Zuchowski <31706010+PaulZ-98@users.noreply.github.com>).Nov 27 2019, 6:08 PM