mirror_zfs/cmd/zdb
Rob N 114a39964f
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
2023-08-01 08:56:30 -07:00
..
Makefile.am zdb: add decryption support 2023-03-02 13:39:09 -08:00
zdb_il.c Implementation of block cloning for ZFS 2023-03-10 11:59:53 -08:00
zdb.c zdb: include cloned blocks in block statistics 2023-08-01 08:56:30 -07:00
zdb.h Replace dead opensolaris.org license link 2022-07-11 14:16:13 -07:00