diff options
author | Matthew Macy <[email protected]> | 2019-10-28 09:53:39 -0700 |
---|---|---|
committer | Brian Behlendorf <[email protected]> | 2019-10-28 09:53:39 -0700 |
commit | d46f0deb035bd26840dc6284fc6e1bb392097c92 (patch) | |
tree | 35cb36d78d2e4b67a14c43a30c739453ea37888b /lib | |
parent | 4a22ba5be0aab1480aeac4581025ce6d7ce4b4a1 (diff) |
Add wrapper for Linux BLKFLSBUF ioctl
FreeBSD has no analog. Buffered block devices were removed a decade
plus ago.
Reviewed-by: Igor Kozhukhov <[email protected]>
Reviewed-by: Jorgen Lundman <[email protected]>
Reviewed-by: Brian Behlendorf <[email protected]>
Signed-off-by: Matt Macy <[email protected]>
Closes #9508
Diffstat (limited to 'lib')
-rw-r--r-- | lib/libzutil/os/linux/zutil_import_os.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/lib/libzutil/os/linux/zutil_import_os.c b/lib/libzutil/os/linux/zutil_import_os.c index e51004edc..a4bf01749 100644 --- a/lib/libzutil/os/linux/zutil_import_os.c +++ b/lib/libzutil/os/linux/zutil_import_os.c @@ -92,6 +92,12 @@ is_watchdog_dev(char *dev) return (B_FALSE); } +int +zfs_dev_flush(int fd) +{ + return (ioctl(fd, BLKFLSBUF)); +} + void zpool_open_func(void *arg) { |