HomeFreeBSD

zdb: include cloned blocks in block statistics

Description

zdb: include cloned blocks in block statistics

This gives zdb -b support for clone blocks.

Previously, it didn't know what clones were, so would count their space
allocation multiple times and then report leaked space (or, in debug,
would assert trying to claim blocks a second time).

This commit fixes those bugs, and reports the number of clones and the
space "used" (saved) by them.

Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov>
Reviewed-by: Kay Pedersen <mail@mkwg.de>
Signed-off-by: Rob Norris <rob.norris@klarasystems.com>
Sponsored-By: OpenDrives Inc.
Sponsored-By: Klara Inc.
Closes #15123

Details

Provenance
rob.norris_klarasystems.comAuthored on Aug 1 2023, 3:56 PM
Brian Behlendorf <behlendorf1@llnl.gov>Committed on Aug 2 2023, 3:52 PM
Parents
rG4a104ac0476e: Tag 2.2.0-rc3
Branches
Unknown
Tags
Unknown