path: root/os/os-netbsd.h
diff options
authorTomohiro Kusumi <>2017-03-13 20:15:00 +0200
committerJens Axboe <>2017-03-13 12:27:31 -0600
commit22de5d7741f963e57dd5e3bb70d822e992dd2515 (patch)
treee69b413e6b69211033608de8cc89a4fcf3785676 /os/os-netbsd.h
parent4499dbef877f3df59a65e9a53b6a6d832a94e315 (diff)
Use ENOTSUP if OS doesn't support blkdev page cache invalidation
The return value of blockdev_invalidate_cache() has been platform dependent (some pretend success, others return EINVAL) while Linux is the only one actually supports this via Linux specific ioctl. This commit makes all the rest return a consistent value ENOTSUP, so __file_invalidate_cache() prints a blkdev invalidation failure message that is consistent and makes sense. Signed-off-by: Tomohiro Kusumi <> Signed-off-by: Jens Axboe <>
Diffstat (limited to 'os/os-netbsd.h')
1 files changed, 1 insertions, 1 deletions
diff --git a/os/os-netbsd.h b/os/os-netbsd.h
index 2133d7a1..e6ba5081 100644
--- a/os/os-netbsd.h
+++ b/os/os-netbsd.h
@@ -54,7 +54,7 @@ static inline int blockdev_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)