HomeFreeBSD

If we close or sync a hash-based db file, make sure to call fsync to

Description

If we close or sync a hash-based db file, make sure to call fsync to
make sure the changes are on disk. The people at pfSense noticed that
it didn't always make it to the disk soon enough with soft updates.

Differential Revision: https://reviews.freebsd.org/D5186
Reviewed by: garga, vangyzen, bapt, se
MFC after: 1 week

Details

Provenance
dwmaloneAuthored on
Reviewer
garga
Differential Revision
D5186: pwd_mkdb opens files with O_SYNC instead of calling fsync
Parents
rS295923: Be more verbose when truncating number of HID items.
Branches
Unknown
Tags
Unknown