Date: Tue, 02 Jan 2024 23:48:34 +0000 From: bugzilla-noreply@freebsd.org To: fs@FreeBSD.org Subject: [Bug 276002] nfscl: data corruption using both copy_file_range and mmap'd I/O Message-ID: <bug-276002-3630-gH0f70VO9S@https.bugs.freebsd.org/bugzilla/> In-Reply-To: <bug-276002-3630@https.bugs.freebsd.org/bugzilla/> References: <bug-276002-3630@https.bugs.freebsd.org/bugzilla/>
next in thread | previous in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D276002 --- Comment #49 from Rick Macklem <rmacklem@FreeBSD.org> --- Created attachment 247424 --> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=3D247424&action= =3Dedit Make Setattr invalidate for setting size if mmap'd writing might have occur= red 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. --=20 You are receiving this mail because: You are the assignee for the bug.=
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-276002-3630-gH0f70VO9S>