HomeFreeBSD

zdb: add `--class=(normal|special|...)` to filter blocks by alloc class

Description

zdb: add --class=(normal|special|...) to filter blocks by alloc class

When counting blocks to generate block size histograms (-bb), accept a
--class= argument (as a comma-separated list of either "normal",
"special", "dedup" or "other") to only consider blocks that belong to
these metaslab classes.

Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov>
Signed-off-by: Ivan Shapovalov <intelfx@intelfx.name>
Closes #16999

Details

Provenance
Ivan Shapovalov <intelfx@intelfx.name>Authored on Dec 10 2024, 1:12 PM
Tony Hutter <hutter2@llnl.gov>Committed on Oct 21 2025, 4:50 PM
Parents
rG627b530059e0: zdb: add `--bin=(lsize|psize|asize)` arg to control histogram binning
Branches
Unknown
Tags
Unknown

Event Timeline

Tony Hutter <hutter2@llnl.gov> committed rG968cfc3df2b1: zdb: add `--class=(normal|special|...)` to filter blocks by alloc class (authored by Ivan Shapovalov <intelfx@intelfx.name>).Oct 21 2025, 4:50 PM