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

From: <bugzilla-noreply_at_freebsd.org>
Date: Mon, 24 Apr 2023 21:44:12 UTC

--- Comment #8 from geoffrey@dommett.com ---
How is this not a bug ?
Under the circumstances described the pages are not written to the nfs server
EVER. the written data is permanently lost.

This is not an issue of a local cache since reading back the file on the
machine that wrote it gives the same corruption.

This seems to be an interaction with nfsv3.

When the nfs server is mounted using nfsv2, the application goes into a state
of nfsio when it exits, and written pages are updated.

when the nfs server is mounted nfsv3, if the application quits, the page
updating ceases, and any unwritten data is permanently lost.

msync (if called) returns without writing the pages, at least when nfsv3 is

I have not properly tested nfsv4 yet, I will post further comment with the
result on this

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