[Bug 270842] nfsclient sees out-of-date metadata until stat(1)

From: <bugzilla-noreply_at_freebsd.org>
Date: Sat, 15 Apr 2023 16:37:58 UTC
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=270842

--- Comment #5 from Alan Somers <asomers@FreeBSD.org> ---
(In reply to Rick Macklem from comment #4)
> Doing anything that does a Getattr (stat(1) is one of them)
> after the cached attributes have timed out will get fresh
> attributes from the NFS server.

This doesn't seem like a timeout to me.  My experience is that git and cargo
may not see the changes for at least tens of seconds, but stat(1) resolves the
problem instantly.  What else might stat(1) do to cause the cached attributes
to timeout?  Presumably git and cargo do stat(2) too.

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