mirror_zfs/tests/zfs-tests/cmd/libzfs_input_check
Tomohiro Kusumi 703f791d35 Don't hard-code number of ioctls for portability
Use (ZFS_IOC_LAST - ZFS_IOC_FIRST) instead of 256.
It seems 256 is just a number large enough to hold ioctls
at the moment.

Using 256 also causes compile-time warning or error
on platfoms whose enum zfs_ioc definition differs.

Reviewed-by: Olaf Faaland <faaland1@llnl.gov>
Reviewed by: Brian Behlendorf <behlendorf1@llnl.gov>
Reviewed-by: Igor Kozhukhov <igor@dilos.org>
Signed-off-by: Tomohiro Kusumi <kusumi.tomohiro@gmail.com>
Closes #8598
2019-04-14 11:13:34 -07:00
..
.gitignore Add basic zfs ioc input nvpair validation 2018-09-02 12:14:01 -07:00
libzfs_input_check.c Don't hard-code number of ioctls for portability 2019-04-14 11:13:34 -07:00
Makefile.am Check for strlcat and strlcpy 2018-12-11 16:01:41 -08:00