mirror of
https://git.proxmox.com/git/mirror_zfs.git
synced 2026-05-22 10:37:35 +03:00
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
This commit is contained in:
committed by
Tony Hutter
parent
627b530059
commit
968cfc3df2
@@ -154,6 +154,10 @@ For instance, with
|
||||
.Fl -bin Ns = Ns Li lsize ,
|
||||
a block with lsize of 16K and psize of 4K will be added to the 16K bin
|
||||
in all three columns.
|
||||
.It Fl -class Ns = Ns ( Li normal Ns | Ns Li special Ns | Ns Li dedup Ns | Ns Li other ) Ns Op , Ns …
|
||||
When used with
|
||||
.Fl bb ,
|
||||
only consider blocks from these allocation classes.
|
||||
.It Fl B , -backup
|
||||
Generate a backup stream, similar to
|
||||
.Nm zfs Cm send ,
|
||||
|
||||
Reference in New Issue
Block a user