mirror of
https://github.com/versity/scoutfs.git
synced 2026-07-29 03:23:13 +00:00
We had arbitrarily chosen an ioctl code 's' to match scoutfs, but of course that conflicts. This chooses an arbitrary hole in the upstream reservations from inode-numbers.rst. Then we make sure to have our _IO[WR] usage reflect the direction of the final type paramater. For most of our ioctls userspace is writing an argument parameter to perform an operation (that often has side effects). Most of our ioctls should be _IOW because userspace is writing the parameter, not _IOR (though the operation tends to read state). A few ioctls copy output back to userspace in the parameter so they're _IOWR. Signed-off-by: Zach Brown <zab@versity.com>