X-Git-Url: https://git.kernel.dk/?a=blobdiff_plain;f=os%2Fos-windows.h;h=e790a51322b3ce10b422c7c3894526cdba481036;hb=3342a4c721f398faf43c5e358b414d2d454ba0d8;hp=f7712a1794f59a8fb8216222fd6f835ce2c52958;hpb=63a582671fe6db03f0a0be81843f2b72bbc8ab33;p=fio.git diff --git a/os/os-windows.h b/os/os-windows.h index f7712a17..e790a513 100644 --- a/os/os-windows.h +++ b/os/os-windows.h @@ -22,6 +22,8 @@ #define OS_CLOCK CLOCK_REALTIME +#define FIO_PREFERRED_ENGINE "windowsaio" + typedef off_t off64_t; typedef struct { @@ -36,8 +38,8 @@ static inline int blockdev_size(struct fio_file *f, unsigned long long *bytes) HANDLE hFile; if (f->hFile == NULL) { - hFile = CreateFile(f->file_name, (GENERIC_READ | GENERIC_WRITE), - (FILE_SHARE_READ | FILE_SHARE_WRITE), NULL, OPEN_EXISTING, 0, NULL); + hFile = CreateFile(f->file_name, GENERIC_READ, FILE_SHARE_READ | FILE_SHARE_WRITE, + NULL, OPEN_EXISTING, 0, NULL); } else { hFile = f->hFile; }