From: Tomohiro Kusumi Date: Tue, 7 Mar 2017 20:12:53 +0000 (+0200) Subject: HOWTO: Add platforms without fdatasync(2) X-Git-Tag: fio-2.19~56 X-Git-Url: https://git.kernel.dk/?p=fio.git;a=commitdiff_plain;h=000a5f1cbea721c026805c3017d4d21f21cd55c5;hp=0cfe20893afc994b3e105ea91a528f96af560199 HOWTO: Add platforms without fdatasync(2) Added DragonFlyBSD which is a fork of FreeBSD. FreeBSD seems to have fdatasync(2) in their upstream, but not yet in the latest release version if I checked correctly. Btw, having "Windows" here sounds a bit ambiguous. Cygwin with gcc (not MinGW) compiles below taken from ./configure by linking against POSIX compat dll. -- $ uname CYGWIN_NT-10.0 $ cat ./fdatasync1.c #include #include int main(int argc, char **argv) { return fdatasync(0); } $ gcc -Wall -g ./fdatasync1.c ; echo $? 0 Signed-off-by: Tomohiro Kusumi Signed-off-by: Jens Axboe --- diff --git a/HOWTO b/HOWTO index 15ed4254..7884944a 100644 --- a/HOWTO +++ b/HOWTO @@ -1104,7 +1104,7 @@ I/O type .. option:: fdatasync=int Like :option:`fsync` but uses :manpage:`fdatasync(2)` to only sync data and - not metadata blocks. In FreeBSD and Windows there is no + not metadata blocks. In Windows, FreeBSD, and DragonFlyBSD there is no :manpage:`fdatasync(2)`, this falls back to using :manpage:`fsync(2)`. .. option:: write_barrier=int