]> granicus.if.org Git - zfs/commit
Use zfs_ioctl() in zinject.c
authorMatthew Macy <mmacy@freebsd.org>
Fri, 25 Oct 2019 20:50:34 +0000 (13:50 -0700)
committerBrian Behlendorf <behlendorf1@llnl.gov>
Fri, 25 Oct 2019 20:50:34 +0000 (13:50 -0700)
commit24cf9f4eb2bbfad49dc70a1540ff096191d7c39f
tree8b579f67612e10c86b30c32424cbe584b80be3d2
parent0ee89a1252f23fa2f1086670e47091400b1f857a
Use zfs_ioctl() in zinject.c

Consistently use the `zfs_ioctl()` wrapper since `ioctl()` cannot be
called directly due to differing semantics between platforms.

Follow up PR to #9492.

Reviewed-by: Igor Kozhukhov <igor@dilos.org>
Reviewed-by: Jorgen Lundman <lundman@lundman.net>
Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov>
Signed-off-by: Matt Macy <mmacy@FreeBSD.org>
Closes #9507
cmd/zinject/zinject.c