Fix zinject list handlers
authorBrian Behlendorf <behlendorf1@llnl.gov>
Wed, 1 May 2013 16:38:49 +0000 (09:38 -0700)
committerBrian Behlendorf <behlendorf1@llnl.gov>
Thu, 2 May 2013 00:05:58 +0000 (17:05 -0700)
commit937210a54b9c2d3dddc7221e31d5695e9720a055
treeb65da5a5832c1d54f7e568e8af1f76f2bad59b6c
parentcc92e9d0c3e67a7e66c844466f85696a087bf60a
Fix zinject list handlers

The zfs_fd must be opened before calling print_all_handlers() or
the ioctl() cannot be used to the zfs control device.  This brings
the zinject code back in sync with the Illumos implementation.

Signed-off-by: Brian Behlendorf <behlendorf1@llnl.gov>
cmd/zinject/zinject.c