summaryrefslogtreecommitdiff
path: root/os
diff options
context:
space:
mode:
authorJens Axboe <jens.axboe@oracle.com>2009-12-20 22:29:10 +0100
committerJens Axboe <jens.axboe@oracle.com>2009-12-20 22:29:10 +0100
commitc36d16f5a0b9e3d505c9933bbbdccdb519ca4faf (patch)
tree2f1fb4e3c352ebc87e8b137c6d2bb0fcf599d30f /os
parenta14ca44ada0708be91ed7741a32176bef4801cc4 (diff)
downloadfio-c36d16f5a0b9e3d505c9933bbbdccdb519ca4faf.tar.gz
fio-c36d16f5a0b9e3d505c9933bbbdccdb519ca4faf.tar.bz2
Make fdatasync OS optional
OSX does not have it. Signed-off-by: Jens Axboe <jens.axboe@oracle.com>
Diffstat (limited to 'os')
-rw-r--r--os/os-freebsd.h1
-rw-r--r--os/os-linux.h1
-rw-r--r--os/os-solaris.h1
3 files changed, 3 insertions, 0 deletions
diff --git a/os/os-freebsd.h b/os/os-freebsd.h
index 8d965aad..062c44cd 100644
--- a/os/os-freebsd.h
+++ b/os/os-freebsd.h
@@ -8,6 +8,7 @@
#define FIO_HAVE_ODIRECT
#define FIO_USE_GENERIC_BDEV_SIZE
#define FIO_USE_GENERIC_RAND
+#define FIO_HAVE_FDATASYNC
#define OS_MAP_ANON MAP_ANON
diff --git a/os/os-linux.h b/os/os-linux.h
index 7162dfa2..01140e0d 100644
--- a/os/os-linux.h
+++ b/os/os-linux.h
@@ -33,6 +33,7 @@
#define FIO_HAVE_PSHARED_MUTEX
#define FIO_HAVE_CL_SIZE
#define FIO_HAVE_CGROUPS
+#define FIO_HAVE_FDATASYNC
#define OS_MAP_ANON MAP_ANONYMOUS
diff --git a/os/os-solaris.h b/os/os-solaris.h
index c6419d83..f8ce1f31 100644
--- a/os/os-solaris.h
+++ b/os/os-solaris.h
@@ -14,6 +14,7 @@
#define FIO_HAVE_CPU_AFFINITY
#define FIO_HAVE_PSHARED_MUTEX
#define FIO_USE_GENERIC_BDEV_SIZE
+#define FIO_HAVE_FDATASYNC
#define OS_MAP_ANON MAP_ANON
#define OS_RAND_MAX 2147483648UL