]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
fusefs: quiet some cache-related warnings
authorAlan Somers <asomers@FreeBSD.org>
Sun, 3 Oct 2021 16:59:04 +0000 (10:59 -0600)
committerAlan Somers <asomers@FreeBSD.org>
Tue, 12 Oct 2021 00:29:45 +0000 (18:29 -0600)
commit076040aacb5d58dd924853350136f08d7f37b969
treedab60a2b2e2761a87ad04a56ecc56116256a3806
parente72fce241f88737592219049648d93d58f0e63eb
fusefs: quiet some cache-related warnings

If the FUSE server does something that would make our cache incoherent,
we should print a warning to the user.  However, we previously warned in
some situations when we shouldn't, such as if the file's size changed on
the server _after_ our own attribute cache had expired.  This change
suppresses the warning in cases like that.  It also moves the warning
logic to a single place within the code.

PR: 256936
Reported by: Agata <chogata@moosefs.pro>
Tested by: Agata <chogata@moosefs.pro>, jSML4ThWwBID69YC@protonmail.com

(cherry picked from commit 5d94aaacb5180798b2f698e33937f068386004eb)
sys/fs/fuse/fuse_internal.c
sys/fs/fuse/fuse_internal.h
sys/fs/fuse/fuse_io.c
sys/fs/fuse/fuse_node.c
sys/fs/fuse/fuse_node.h
sys/fs/fuse/fuse_vfsops.c
sys/fs/fuse/fuse_vnops.c