projects
/
fio.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Make fdatasync OS optional
[fio.git]
/
os
/
os-solaris.h
diff --git
a/os/os-solaris.h
b/os/os-solaris.h
index 5029d38f356e5983992bb58ae04cfffa77773a5d..f8ce1f31cf3d4b610f898b9da3eedc873190257d 100644
(file)
--- a/
os/os-solaris.h
+++ b/
os/os-solaris.h
@@
-2,6
+2,7
@@
#define FIO_OS_SOLARIS_H
#include <errno.h>
#define FIO_OS_SOLARIS_H
#include <errno.h>
+#include <malloc.h>
#include <sys/types.h>
#include <sys/fcntl.h>
#include <sys/pset.h>
#include <sys/types.h>
#include <sys/fcntl.h>
#include <sys/pset.h>
@@
-12,6
+13,8
@@
#define FIO_HAVE_POSIXAIO_FSYNC
#define FIO_HAVE_CPU_AFFINITY
#define FIO_HAVE_PSHARED_MUTEX
#define FIO_HAVE_POSIXAIO_FSYNC
#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
#define OS_MAP_ANON MAP_ANON
#define OS_RAND_MAX 2147483648UL
@@
-23,17
+26,6
@@
struct solaris_rand_seed {
typedef psetid_t os_cpu_mask_t;
typedef struct solaris_rand_seed os_random_state_t;
typedef psetid_t os_cpu_mask_t;
typedef struct solaris_rand_seed os_random_state_t;
-static inline int blockdev_size(int fd, unsigned long long *bytes)
-{
- off_t end = lseek(fd, 0, SEEK_END);
-
- if (end < 0)
- return errno;
-
- *bytes = end;
- return 0;
-}
-
static inline int blockdev_invalidate_cache(int fd)
{
return EINVAL;
static inline int blockdev_invalidate_cache(int fd)
{
return EINVAL;