projects
/
fio.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
[PATCH] Add option to specify the exact file used
[fio.git]
/
os-freebsd.h
diff --git
a/os-freebsd.h
b/os-freebsd.h
index 41672d4e10231b3be0a8d3be4e92aa8c45478fe1..01c5ce917b57d9501774cd80d8a84e82b6df6b35 100644
(file)
--- a/
os-freebsd.h
+++ b/
os-freebsd.h
@@
-9,6
+9,7
@@
#undef FIO_HAVE_CPU_AFFINITY
#undef FIO_HAVE_DISK_UTIL
#undef FIO_HAVE_SGIO
#undef FIO_HAVE_CPU_AFFINITY
#undef FIO_HAVE_DISK_UTIL
#undef FIO_HAVE_SGIO
+#define FIO_HAVE_ODIRECT
#define OS_MAP_ANON (MAP_ANON)
#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)
{
*/
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)
}
static inline unsigned long long os_phys_mem(void)