syslet engine: style fix and ->queue() error return value fix
[fio.git] / os-freebsd.h
index 41672d4e10231b3be0a8d3be4e92aa8c45478fe1..01c5ce917b57d9501774cd80d8a84e82b6df6b35 100644 (file)
@@ -9,6 +9,7 @@
 #undef FIO_HAVE_CPU_AFFINITY
 #undef FIO_HAVE_DISK_UTIL
 #undef FIO_HAVE_SGIO
+#define FIO_HAVE_ODIRECT
 
 #define OS_MAP_ANON            (MAP_ANON)
 
@@ -20,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)