diff options
author | Bruce Cran <bruce@cran.org.uk> | 2011-01-04 14:44:47 +0100 |
---|---|---|
committer | Jens Axboe <jaxboe@fusionio.com> | 2011-01-04 14:44:47 +0100 |
commit | e4db9fec06d77523472e9fad6de5170a77d715c0 (patch) | |
tree | 3468b0a74cc62926ff1bce9d623aacfe73ba128d /os/os-windows.h | |
parent | e2e58886427019b525d2a234c5404a38ec0c7ebf (diff) | |
download | fio-e4db9fec06d77523472e9fad6de5170a77d715c0.tar.gz fio-e4db9fec06d77523472e9fad6de5170a77d715c0.tar.bz2 |
Fio Windows update
Signed-off-by: Jens Axboe <jaxboe@fusionio.com>
Diffstat (limited to 'os/os-windows.h')
-rw-r--r-- | os/os-windows.h | 11 |
1 files changed, 2 insertions, 9 deletions
diff --git a/os/os-windows.h b/os/os-windows.h index 74c0f9e8..f7712a17 100644 --- a/os/os-windows.h +++ b/os/os-windows.h @@ -1,7 +1,6 @@ #ifndef FIO_OS_WINDOWS_H
#define FIO_OS_WINDOWS_H
-
#include <sys/types.h>
#include <errno.h>
#include <windows.h>
@@ -51,7 +50,6 @@ static inline int blockdev_size(struct fio_file *f, unsigned long long *bytes) *bytes = info.Length.QuadPart;
else
rc = EIO;
- }
/* If we were passed a POSIX fd,
* close the HANDLE we created via CreateFile */
@@ -66,14 +64,10 @@ static inline int chardev_size(struct fio_file *f, unsigned long long *bytes) return blockdev_size(f, bytes);
}
-{
-
static inline int blockdev_invalidate_cache(struct fio_file *f)
{
- BOOL bSuccess = FlushFileBuffers(f->hFile);
- if (!bSuccess)
- log_info("blockdev_invalidate_cache - FlushFileBuffers failed\n");
-
+ /* There's no way to invalidate the cache in Windows
+ * so just pretend to succeed */
return 0;
}
@@ -95,5 +89,4 @@ static inline void os_get_tmpdir(char *path, int len) #define FIO_MADV_FREE MADV_FREE
#endif
-
#endif /* FIO_OS_WINDOWS_H */
|