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

From: <bugzilla-noreply_at_freebsd.org>
Date: Mon, 17 Apr 2023 23:20:41 UTC

Konstantin Belousov <kib@FreeBSD.org> changed:

           What    |Removed                     |Added
         Resolution|---                         |Works As Intended
             Status|New                         |Closed

--- Comment #7 from Konstantin Belousov <kib@FreeBSD.org> ---
msync(MS_SYNC) ensures that the pages are synced with the _local_ buffer
cache.  When the buffers are flushed to remote server, is up to syncer
and buffer daemon.

For NFS, same as a local filesystems, msync() is not needed to ensure that
mmaped writes are constistent with local io.  Remote state is out of this

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