Use ENOTSUP if OS doesn't support blkdev page cache invalidation
[fio.git] / os / os-mac.h
index 0903a6fec5c4cd508ff5fefeca69a7e0b9652063..7de36ea79aa7b43a7f962796526cf000a2458527 100644 (file)
@@ -77,7 +77,7 @@ static inline int chardev_size(struct fio_file *f, unsigned long long *bytes)
 
 static inline int blockdev_invalidate_cache(struct fio_file *f)
 {
-       return EINVAL;
+       return ENOTSUP;
 }
 
 static inline unsigned long long os_phys_mem(void)