HomeFreeBSD

Add an implementation of fdatasync(2).

Description

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

Details

Provenance
kibAuthored on
Reviewer
mckusick
Differential Revision
D7471: First stage of implementing fdatasync(2).
Parents
rS304175: Disable tests for non-standard behaviour of dirname(3)/basename(3).
Branches
Unknown
Tags
Unknown