Update terse output
[fio.git] / os-freebsd.h
index b56ba8026f2263db3cdb1ab34b0d3ce97a0a6708..01c5ce917b57d9501774cd80d8a84e82b6df6b35 100644 (file)
@@ -1,12 +1,15 @@
 #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)
 
@@ -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)