HomeFreeBSD

Ensure that ftruncate(2) is performed synchronously when file is

Description

Ensure that ftruncate(2) is performed synchronously when file is
opened in O_SYNC mode, at least for UFS. This also handles
truncation, done due to the O_SYNC | O_TRUNC flags combination to
open(2), in synchronous way.

Noted by: bde
Sponsored by: The FreeBSD Foundation
MFC after: 2 weeks

Details

Provenance
kibAuthored on
Parents
rS300141: MFC r299413:
Branches
Unknown
Tags
Unknown