Use ENOTSUP if OS doesn't support blkdev page cache invalidation
authorTomohiro Kusumi <tkusumi@tuxera.com>
Mon, 13 Mar 2017 18:15:00 +0000 (20:15 +0200)
committerJens Axboe <axboe@fb.com>
Mon, 13 Mar 2017 18:27:31 +0000 (12:27 -0600)
commit22de5d7741f963e57dd5e3bb70d822e992dd2515
treee69b413e6b69211033608de8cc89a4fcf3785676
parent4499dbef877f3df59a65e9a53b6a6d832a94e315
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>
filesetup.c
os/os-aix.h
os/os-dragonfly.h
os/os-freebsd.h
os/os-hpux.h
os/os-mac.h
os/os-netbsd.h
os/os-openbsd.h
os/os-solaris.h
os/os-windows.h