]> git.proxmox.com Git - mirror_zfs.git/commit
OpenZFS 7900 - zdb shouldn't print the path of a znode at verbosity < 5
authorAlan Somers <asomers@gmail.com>
Thu, 13 Apr 2017 21:22:32 +0000 (14:22 -0700)
committerBrian Behlendorf <behlendorf1@llnl.gov>
Fri, 14 Apr 2017 18:11:28 +0000 (11:11 -0700)
commita5c3a1efaf8a47b0988a27ae429c4b28467abae3
treee9f269a6270bf1e0d6733d88ad034958d13eb2d3
parent87a275d97aa5b7bb47c0601c8b005e8ae85be2f7
OpenZFS 7900 - zdb shouldn't print the path of a znode at verbosity < 5

Authored by: Alan Somers <asomers@gmail.com>
Approved by: Dan McDonald <danmcd@omniti.com>
Reviewed by: Paul Dagnelie <pcd@delphix.com>
Reviewed by: Matt Ahrens <mahrens@delphix.com>
Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov>
Ported-by: Giuseppe Di Natale <dinatale2@llnl.gov>
There are two reasons:
1) Finding a znode's path is slower than printing any other znode
   information at verbosity < 5.
2) On a corrupted pool like the one mentioned below, zdb will crash when it
   tries to determine the znode's path. But with this patch, zdb can still
   extract useful information from such pools.

OpenZFS-issue: https://www.illumos.org/issues/7900
OpenZFS-commit: https://github.com/openzfs/openzfs/commit/2b0dee1
Closes #6016
cmd/zdb/zdb.c