Add blockdev_size() support for OpenBSD
authorTomohiro Kusumi <kusumi.tomohiro@gmail.com>
Fri, 21 Oct 2016 17:07:33 +0000 (02:07 +0900)
committerJens Axboe <axboe@fb.com>
Wed, 26 Oct 2016 14:00:10 +0000 (08:00 -0600)
commita955f5297d6951517c663ac9effd94adfae6a563
tree135231870a8e3be7e417cf6efee27d9e319aa4dc
parentfc0aa68abd51f312f0b609ea0aef4524a8652316
Add blockdev_size() support for OpenBSD

This commit is OpenBSD version of 1116dc04 in 2015.
This is exactly the same as the previous commit for NetBSD.

OpenBSD still has block device as a file type, thus it differs
from FreeBSD/DragonFlyBSD regarding FIO_HAVE_CHARDEV_SIZE.

Note that fio doesn't compile on OpenBSD 5.9 (hits lex error),
but this this commit should still be good since this function
alone compiles on OpenBSD.

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