Use ENOTSUP if OS doesn't support blkdev page cache invalidation
[fio.git] / os / os-freebsd.h
index 9d1af3b4c49f5a15ab0cb2250130b5ea3ffd091a..c7863b5e02eb5b978f266cc5d9329827c1819aca 100644 (file)
@@ -82,7 +82,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)