Use ENOTSUP if OS doesn't support blkdev page cache invalidation
[fio.git] / os / os-windows.h
index 616ad43567b0719a92f9f2ecee6143a15a0b0e46..0c8c42d39a24bc5e2afc2115bee0deb9dbdc91e9 100644 (file)
@@ -152,9 +152,7 @@ static inline int chardev_size(struct fio_file *f, unsigned long long *bytes)
 
 static inline int blockdev_invalidate_cache(struct fio_file *f)
 {
-       /* There's no way to invalidate the cache in Windows
-        * so just pretend to succeed */
-       return 0;
+       return ENOTSUP;
 }
 
 static inline unsigned long long os_phys_mem(void)