This internet draft (which is close to being an RFC)
specifies a new NFSv4.2 attribute which tells the NFSv4.2
client to not cache file data. (Similar to O_DIRECT, but
triggered by this attribute set on the file on the NFSv4.2
server and not by the application's open(2).)
https://datatracker.ietf.org/doc/draft-ietf-nfsv4-uncacheable-files/
I am thinking that this can be implemented as a
new UF_xxx va_flags bit. I called it UF_DONTCACHE,
but anyone can suggest a better name.
There has only been one response to my email on
freebsd-fs@ and they supported this idea.
Patches for NFS and ZFS will be done separately.