os/os-dragonfly: sync with header file changes in upstream
authorTomohiro Kusumi <kusumi.tomohiro@gmail.com>
Tue, 10 Apr 2018 15:35:32 +0000 (00:35 +0900)
committerJens Axboe <axboe@kernel.dk>
Tue, 10 Apr 2018 15:17:22 +0000 (09:17 -0600)
commit4fe721ac83e84df7c6be07394d1963fd1ec5d9a6
tree85feb84821eb7ddbe5a6ea724fe56b42cedf21e5
parentcb73748b9af3d678eb6ad0af7b9cea5a2ea1999e
os/os-dragonfly: sync with header file changes in upstream

IOCTLTRIM was moved and renamed to a different header file,
so conditionally include previous or current header depending on
__DragonFly_version.

Some details in below commit messages.
In short, they have had IOCTLTRIM in a wrong header, and they
decided to fix/change it since fio was the only application using
IOCTLTRIM within their userspace package collections.

<sys/ioctl_compat.h>: Add a reminder comment about IOCTLTRIM.
http://gitweb.dragonflybsd.org/dragonfly.git/commitdiff/7226e3530be4df743a5cfe61f602b0c4bd436ee9

Move the IOCTLTRIM ioctl to a better header and rename it to DAIOCTRIM.
http://gitweb.dragonflybsd.org/dragonfly.git/commitdiff/32506cfa691f80faa47486d6f94a98ae12387eeb

Signed-off-by: Tomohiro Kusumi <kusumi.tomohiro@gmail.com>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
os/os-dragonfly.h