]> git.proxmox.com Git - mirror_zfs.git/commit
Move assert in dump_dir() in zdb
authorTom Caputi <tcaputi@datto.com>
Wed, 5 Dec 2018 17:30:28 +0000 (12:30 -0500)
committerBrian Behlendorf <behlendorf1@llnl.gov>
Wed, 5 Dec 2018 17:30:28 +0000 (09:30 -0800)
commite3c85c0938c5d878927fcb812792b68fd056b188
tree9eed749f868ee461fb5b218017aa768bc5216be8
parent78e21394679ed7435f9b0d10a56ce4f679c680fe
Move assert in dump_dir() in zdb

This one line patch moves an assert in the function dump_dir()
below an error check that ensures it ran correctly. This ensures
zdb dumps the error that actually caused the problem, as opposed
to one of its symptoms.

Reviewed-by: George Melikov <mail@gmelikov.ru>
Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov>
Signed-off-by: Tom Caputi <tcaputi@datto.com>
Closes #8171
cmd/zdb/zdb.c