HomeFreeBSD

open(2): Add O_DSYNC flag.

Description

open(2): Add O_DSYNC flag.

POSIX O_DSYNC means that writes include an implicit fdatasync(2), just
as O_SYNC implies fsync(2).

VOP_WRITE() functions that understand the new IO_DATASYNC flag can act
accordingly, but we'll still pass down IO_SYNC so that file systems that
don't understand it will continue to provide the stronger O_SYNC
behaviour.

Flag also applies to fcntl(2).

Reviewed by: kib, delphij
Differential Revision: https://reviews.freebsd.org/D25090

Details

Provenance
tmunroAuthored on Jan 7 2021, 10:46 AM
Reviewer
kib
Differential Revision
D25090: Add O_DSYNC support to open(2) and fcntl(2).
Parents
R10:81098ca81dd0: Set current date in to placeholders.
Branches
Unknown
Tags
Unknown