Please sign in to comment.
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@example.com> Reviewed by: Brian Behlendorf <firstname.lastname@example.org> Reviewed-by: Igor Kozhukhov <email@example.com> Signed-off-by: Tomohiro Kusumi <firstname.lastname@example.org> Closes #8598
- Loading branch information...
Showing with 1 addition and 1 deletion.