]> 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>
Wed, 6 Oct 2021 20:07:33 +0000 (14:07 -0600)
commit5d94aaacb5180798b2f698e33937f068386004eb
treea05da44937436c03d363470448a5280c192325e6
parenta76de17715ab689b0b53a1012e22d8a08470b6e4
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
MFC after: 2 weeks
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