freebsd-dev/cmd
Chunwei Chen 90aa094d6d Fix zdb calling behavior in ztest
The current zdb calling behaviour is really fragile, and is guaranteed to
segfault if ztest is not installed in either /sbin or /usr/sbin. With this
patch, the ztest will try to call zdb in the following order.

1. Use environmental variable ZDB_PATH if provided.
2. If ztest resides in build tree, guess the in tree zdb path.
3. Just pass zdb to popen and let it search it in PATH.

Signed-off-by: Chunwei Chen <david.chen@osnexus.com>
Signed-off-by: Brian Behlendorf <behlendorf1@llnl.gov>
Closes #3126
2015-12-02 14:50:36 -08:00
..
arc_summary Support parallel build trees (VPATH builds) 2015-07-17 13:42:51 -07:00
arcstat Support parallel build trees (VPATH builds) 2015-07-17 13:42:51 -07:00
dbufstat Support parallel build trees (VPATH builds) 2015-07-17 13:42:51 -07:00
fsck_zfs Add /sbin/fsck.zfs helper 2013-01-09 16:54:58 -08:00
mount_zfs Add temporary mount options 2015-09-03 14:14:55 -07:00
vdev_id Add extra keyword 'slot' to vdev_id.conf 2015-08-30 10:03:56 -07:00
zdb zdb: segfault in dump_bpobj_subobjs() 2015-10-13 09:56:51 -07:00
zed Rework zed_notify_email for configurable PROG/OPTS 2015-07-30 11:52:56 -07:00
zfs Support parallel build trees (VPATH builds) 2015-07-17 13:42:51 -07:00
zhack Support parallel build trees (VPATH builds) 2015-07-17 13:42:51 -07:00
zinject Support parallel build trees (VPATH builds) 2015-07-17 13:42:51 -07:00
zpios Add large block support to zpios(1) benchmark 2015-09-22 09:13:20 -07:00
zpool Tab-indent continuation lines in the "scan:" section of "zpool status". 2015-09-19 14:17:07 -07:00
zstreamdump Support parallel build trees (VPATH builds) 2015-07-17 13:42:51 -07:00
ztest Fix zdb calling behavior in ztest 2015-12-02 14:50:36 -08:00
zvol_id Support parallel build trees (VPATH builds) 2015-07-17 13:42:51 -07:00
Makefile.am Install arc_summary.py 2015-03-03 13:38:17 -08:00