#ifndef FIO_OS_FREEBSD_H
#define FIO_OS_FREEBSD_H
+#include <sys/sysctl.h>
+
#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)
*/
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)