X-Git-Url: https://git.kernel.dk/?a=blobdiff_plain;f=os%2Fos-aix.h;h=e204d6f27f270f1e63a06809fb4fdaffb2cbe1e4;hb=540e235dcd276e63c57ca4bd35f70a0651e2d00e;hp=8e4a71d51fc69ce29bc4d1221c2d048298452844;hpb=d9a7ba88af39b1047c9f8c077280932cd12cb58e;p=fio.git diff --git a/os/os-aix.h b/os/os-aix.h index 8e4a71d5..e204d6f2 100644 --- a/os/os-aix.h +++ b/os/os-aix.h @@ -1,6 +1,8 @@ #ifndef FIO_OS_AIX_H #define FIO_OS_AIX_H +#define FIO_OS os_aix + #include #include #include @@ -8,26 +10,18 @@ #include "../file.h" -#define FIO_HAVE_POSIXAIO #define FIO_HAVE_ODIRECT #define FIO_USE_GENERIC_RAND -#define FIO_HAVE_CLOCK_MONOTONIC - -/* - * This is broken on AIX if _LARGE_FILES is defined... - */ -#if 0 -#define FIO_HAVE_FALLOCATE -#endif - -#define FIO_HAVE_PSHARED_MUTEX +#define FIO_USE_GENERIC_INIT_RANDOM_STATE #define OS_MAP_ANON MAP_ANON #define OS_MSG_DONTWAIT 0 -static inline int blockdev_invalidate_cache(struct fio_file fio_unused *f) +#define FIO_USE_GENERIC_SWAP + +static inline int blockdev_invalidate_cache(struct fio_file *f) { - return EINVAL; + return ENOTSUP; } static inline int blockdev_size(struct fio_file *f, unsigned long long *bytes)