]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
Add an implementation of fdatasync(2).
authorkib <kib@FreeBSD.org>
Mon, 15 Aug 2016 19:08:51 +0000 (19:08 +0000)
committerkib <kib@FreeBSD.org>
Mon, 15 Aug 2016 19:08:51 +0000 (19:08 +0000)
commitaa6b4fc56afd224a2985a17c21e6dd79ad687945
tree09514f30b39e5d47e38d43412999fff4ebdf4fd2
parent8dc5294f231d0797fd7907adf2347e6a57df415a
Add an implementation of fdatasync(2).

The syscall is a trivial wrapper around new VOP_FDATASYNC(), sharing
code with fsync(2).  For all filesystems, this commit provides the
implementation which delegates the work of VOP_FDATASYNC() to
VOP_FSYNC().  This is functionally correct but not efficient.

This is not yet POSIX-compliant implementation, because it does not
ensure that queued AIO requests are completed before returning.

Reviewed by: mckusick
Discussed with: avg (ZFS), jhb (AIO part)
Tested by: pho
Sponsored by: The FreeBSD Foundation
MFC after: 2 weeks
Differential revision: https://reviews.freebsd.org/D7471
include/unistd.h
lib/libc/sys/Symbol.map
sys/compat/freebsd32/syscalls.master
sys/kern/syscalls.master
sys/kern/vfs_default.c
sys/kern/vfs_syscalls.c
sys/kern/vnode_if.src