]> git.proxmox.com Git - mirror_zfs.git/commit
OpenZFS 9847 - leaking dd_clones (DMU_OT_DSL_CLONES) objects (#7979)
authorMatthew Ahrens <mahrens@delphix.com>
Fri, 12 Oct 2018 18:28:26 +0000 (11:28 -0700)
committerGitHub <noreply@github.com>
Fri, 12 Oct 2018 18:28:26 +0000 (11:28 -0700)
commit0aa5916a30745c131c4e19464027ea793e66603d
treec202da6894b61b2fc5cdb7b6b4a54e74abb9700c
parent27f80e85c2649573af3c3d915baf6d4195538583
OpenZFS 9847 - leaking dd_clones (DMU_OT_DSL_CLONES) objects (#7979)

OpenZFS 9847 - leaking dd_clones (DMU_OT_DSL_CLONES) objects

We're leaking the dd_clones objects in dsl_dir_destroy_sync.  This bug
appears to have been around forever.  Thankfully the amount of space
typically involved is tiny.

In addition this adds a mechanism in ZDB to find objects in the MOS
which are leaked (not referenced anywhere).

Porting notes:
* Added dd_crypto_obj to ZDB MOS object leak tracking

Authored by: Matthew Ahrens <mahrens@delphix.com>
Reviewed-by: George Wilson <george.wilson@delphix.com>
Reviewed-by: Serapheim Dimitropoulos <serapheim@delphix.com>
Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov>
Ported-by: Matthew Ahrens <mahrens@delphix.com>
OpenZFS-issue: https://illumos.org/issues/9847
Closes #7979
cmd/zdb/zdb.c
module/zfs/dsl_destroy.c
module/zfs/vdev_indirect_mapping.c