[Bug 276002] nfscl: data corruption using both copy_file_range and mmap'd I/O

From: <bugzilla-noreply_at_freebsd.org>
Date: Tue, 02 Jan 2024 23:48:34 UTC
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=276002

--- Comment #49 from Rick Macklem <rmacklem@FreeBSD.org> ---
Created attachment 247424
  --> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=247424&action=edit
Make Setattr invalidate for setting size if mmap'd writing might have occurred

This is another patch that Alan can hopefully
test, since his test does include truncation.
The patch adds a check for vm_obect_mightbedirty()
as well as NMODIFIED (which is set for writes into
the buffer cache, but not writes to mmap'd pages)
to decide that flushing/invalidation should occur
when a Setattr of size is done.

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