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
GitHub <noreply@github.com>Committed on Aug 1 2023, 3:56 PM
Parents
rGa21ca18d4d29: linux: zfs: ctldir: set [amc]time to snapshot's creation property
Branches
Unknown
Tags
Unknown