X-Git-Url: https://git.kernel.dk/?p=fio.git;a=blobdiff_plain;f=os-freebsd.h;h=01c5ce917b57d9501774cd80d8a84e82b6df6b35;hp=b56ba8026f2263db3cdb1ab34b0d3ce97a0a6708;hb=1ff2a7eb468833dd03ccc2cc27a76c5bc7055297;hpb=6dfd46b99af38cc1e5f702f53c59212129fe615e diff --git a/os-freebsd.h b/os-freebsd.h index b56ba802..01c5ce91 100644 --- a/os-freebsd.h +++ b/os-freebsd.h @@ -1,12 +1,15 @@ #ifndef FIO_OS_FREEBSD_H #define FIO_OS_FREEBSD_H +#include + #undef FIO_HAVE_LIBAIO #define FIO_HAVE_POSIXAIO #undef FIO_HAVE_FADVISE #undef FIO_HAVE_CPU_AFFINITY #undef FIO_HAVE_DISK_UTIL #undef FIO_HAVE_SGIO +#define FIO_HAVE_ODIRECT #define OS_MAP_ANON (MAP_ANON) @@ -18,7 +21,12 @@ typedef unsigned int os_random_state_t; */ static inline int blockdev_size(int fd, unsigned long long *bytes) { - return 1; + return EINVAL; +} + +static inline int blockdev_invalidate_cache(int fd) +{ + return EINVAL; } static inline unsigned long long os_phys_mem(void)