summaryrefslogtreecommitdiff
path: root/os/os-freebsd.h
diff options
context:
space:
mode:
authorJens Axboe <jaxboe@fusionio.com>2010-06-24 10:27:22 +0200
committerJens Axboe <jaxboe@fusionio.com>2010-06-24 10:27:22 +0200
commit4ccdccd149d82c94ec6ccdb4118d9e27479b8516 (patch)
tree364814f85573c0d0b20d8f67815cccf31a768a1e /os/os-freebsd.h
parent02af09886db695e5ea2b7fd2a632733955f3c03f (diff)
downloadfio-4ccdccd149d82c94ec6ccdb4118d9e27479b8516.tar.gz
fio-4ccdccd149d82c94ec6ccdb4118d9e27479b8516.tar.bz2
Add chardev size getting
Signed-off-by: Jens Axboe <jaxboe@fusionio.com>
Diffstat (limited to 'os/os-freebsd.h')
-rw-r--r--os/os-freebsd.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/os/os-freebsd.h b/os/os-freebsd.h
index bb7e9a3b..4a50a3cf 100644
--- a/os/os-freebsd.h
+++ b/os/os-freebsd.h
@@ -8,6 +8,7 @@
#define FIO_HAVE_POSIXAIO
#define FIO_HAVE_ODIRECT
#define FIO_USE_GENERIC_RAND
+#define FIO_HAVE_CHARDEV_SIZE
#define OS_MAP_ANON MAP_ANON
@@ -26,6 +27,11 @@ static inline int blockdev_size(int fd, unsigned long long *bytes)
return errno;
}
+static inline int chardev_size(int fd, unsigned long long *bytes)
+{
+ return blockdev_size(fd, bytes);
+}
+
static inline int blockdev_invalidate_cache(int fd)
{
return EINVAL;