]> git.proxmox.com Git - mirror_zfs.git/commitdiff
Illumos 3604 - zdb should print bpobjs more verbosely (fix zdb hang)
authorMatthew Ahrens <mahrens@delphix.com>
Thu, 31 Dec 2015 15:57:11 +0000 (16:57 +0100)
committerBrian Behlendorf <behlendorf1@llnl.gov>
Tue, 5 Jan 2016 19:37:43 +0000 (11:37 -0800)
3604 zdb should print bpobjs more verbosely (fix zdb hang)
References:
  https://github.com/illumos/illumos-gate/commit/7706186
  https://www.illumos.org/issues/3604
  https://lists.freebsd.org/pipermail/svn-src-vendor/2015-August/002411.html
  https://lists.freebsd.org/pipermail/svn-src-head/2015-August/075195.html

Porting notes:
In ZoL "5810 zdb should print details of bpobj" was merged
prior to this change so it must be applied to the new location.

Ported-by: kernelOfTruth kerneloftruth@gmail.com
Signed-off-by: Brian Behlendorf <behlendorf1@llnl.gov>
cmd/zdb/zdb.c

index 6b5ec4201994b6ddd7af0a84b14c0a22e0831738..60095f82565d101ef3d63569e0e513e474c4d814 100644 (file)
@@ -1510,6 +1510,7 @@ dump_full_bpobj(bpobj_t *bpo, char *name, int indent)
                                continue;
                        }
                        dump_full_bpobj(&subbpo, "subobj", indent + 1);
+                       bpobj_close(&subbpo);
                }
        } else {
                (void) printf("    %*s: object %llu, %llu blkptrs, %s\n",