HomeFreeBSD

zdb -L should skip leak detection altogether

Description

zdb -L should skip leak detection altogether

Currently the point of -L option in zdb is to disable leak
tracing and the loading of space maps because they are expensive,
yet still do leak detection in terms of space. Unfortunately,
there is a scenario where this is a lie. If we are using zdb -L
on a pool where a vdev is being removed, zdb_claim_removing()
will open the metaslab space maps of that device.

This patch makes it so zdb -L skips leak detection altogether
and ensures that no space maps are loaded.

Reviewed-by: Matt Ahrens <mahrens@delphix.com>
Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov>
Signed-off-by: Serapheim Dimitropoulos <serapheim@delphix.com>
Closes #8335

Details

Provenance
Serapheim Dimitropoulos <serapheimd@gmail.com>Authored on Jan 30 2019, 5:54 PM
Brian Behlendorf <behlendorf1@llnl.gov>Committed on Jan 30 2019, 5:54 PM
Parents
rG466f55334ac9: Exclude test-runner.py from the rpmbuild shebang check
Branches
Unknown
Tags
Unknown