[Bug 270810] munmap does not always sync the underlying file

From: <bugzilla-noreply_at_freebsd.org>
Date: Tue, 25 Apr 2023 00:42:59 UTC

--- Comment #9 from Konstantin Belousov <kib@FreeBSD.org> ---
(In reply to geoffrey from comment #8)
The pages sit in the local cache, and pushed to the server by syncer,
periodically.  If you want to push them to server immediately, you need
to fsync(2), not msync(2).

It is the same behavior as for local filesystems: msync(2) only converts
dirty pages into dirty buffers, but does not flush buffers to the storage.
Either periodic syncer run, or fsync(2), writes to the storage.

You are receiving this mail because:
You are the assignee for the bug.