#ifndef FIO_OS_WINDOWS_H\r
#define FIO_OS_WINDOWS_H\r
\r
-\r
#include <sys/types.h>\r
#include <errno.h>\r
#include <windows.h>\r
*bytes = info.Length.QuadPart;\r
else\r
rc = EIO;\r
- }\r
\r
/* If we were passed a POSIX fd,\r
* close the HANDLE we created via CreateFile */\r
return blockdev_size(f, bytes);\r
}\r
\r
-{\r
-\r
static inline int blockdev_invalidate_cache(struct fio_file *f)\r
{\r
- BOOL bSuccess = FlushFileBuffers(f->hFile);\r
- if (!bSuccess)\r
- log_info("blockdev_invalidate_cache - FlushFileBuffers failed\n");\r
-\r
+ /* There's no way to invalidate the cache in Windows\r
+ * so just pretend to succeed */\r
return 0;\r
}\r
\r
#define FIO_MADV_FREE MADV_FREE\r
#endif\r
\r
-\r
#endif /* FIO_OS_WINDOWS_H */\r