diff options
author | Tomohiro Kusumi <[email protected]> | 2019-04-08 02:18:01 +0900 |
---|---|---|
committer | Brian Behlendorf <[email protected]> | 2019-04-14 11:13:34 -0700 |
commit | 703f791d3538472600571ecde01627df6b47e6d6 (patch) | |
tree | 7e5510dd0e1e6244ea243945e9d65a44a68be54d /etc/init.d/zfs.in | |
parent | 96e51d2773cb0f82595f7d29caed0ca4ac653681 (diff) |
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 <[email protected]>
Reviewed by: Brian Behlendorf <[email protected]>
Reviewed-by: Igor Kozhukhov <[email protected]>
Signed-off-by: Tomohiro Kusumi <[email protected]>
Closes #8598
Diffstat (limited to 'etc/init.d/zfs.in')
0 files changed, 0 insertions, 0 deletions