summaryrefslogtreecommitdiff
path: root/os/os-netbsd.h
diff options
context:
space:
mode:
authorTomohiro Kusumi <tkusumi@tuxera.com>2017-03-13 20:15:00 +0200
committerJens Axboe <axboe@fb.com>2017-03-13 12:27:31 -0600
commit22de5d7741f963e57dd5e3bb70d822e992dd2515 (patch)
treee69b413e6b69211033608de8cc89a4fcf3785676 /os/os-netbsd.h
parent4499dbef877f3df59a65e9a53b6a6d832a94e315 (diff)
downloadfio-22de5d7741f963e57dd5e3bb70d822e992dd2515.tar.gz
fio-22de5d7741f963e57dd5e3bb70d822e992dd2515.tar.bz2
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 <tkusumi@tuxera.com> Signed-off-by: Jens Axboe <axboe@fb.com>
Diffstat (limited to 'os/os-netbsd.h')
-rw-r--r--os/os-netbsd.h2
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)