[Bug 259071] Read past EoF in NFS client and fusefs

From: <bugzilla-noreply_at_freebsd.org>
Date: Fri, 22 Oct 2021 03:18:56 UTC
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=259071

--- Comment #5 from Rick Macklem <rmacklem@FreeBSD.org> ---
Created attachment 228935
  --> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=228935&action=edit
mark local file modification and avoid loading Lookup attributes when marked

This patch seems to fix the problem for NFS.
It defines a new flag called NMODLOCALLY for
the NFS vnode, which is set when a file is
Written/Setattr-of-Size.

Then Lookup throws away the attributes in
the RPC reply when the flag is set, since
they may be stale and no longer correct.

This patch needs more regression testing
and determination if the RPC counts increase
significantly.

A possible alternative is to use a timestamp
of when Written/Setattr-of-Size happens, as
suggested by asomers@.

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