Use fcntl(..., F_FULLSYNC) if available
authorJens Axboe <axboe@kernel.dk>
Thu, 17 Feb 2022 19:08:41 +0000 (12:08 -0700)
committerJens Axboe <axboe@kernel.dk>
Thu, 17 Feb 2022 19:08:41 +0000 (12:08 -0700)
commita04e0665cb5d3a545ab1dbe2d2b7c150b404735d
tree12a2564d4677e7f6631d03b29593013e6c140074
parenta0639afe121870a2a9b69cadc07619ba82959e3e
Use fcntl(..., F_FULLSYNC) if available

Some operating systems don't perform a data integrity flush when
fsync() is done, but provide fcntl(fd, F_FULLSYNC) to provide that kind
of guarantee.

To ensure that comparisons between operating systems is fair, use
fcntl() to do a proper sync if available.

Signed-off-by: Jens Axboe <axboe@kernel.dk>
configure
io_u.c