freebsd-dev/sys/fs/fuse
Conrad Meyer 3c324b9465 FUSE: Refresh cached file size when it changes (lookup)
The cached fvdat->filesize is indepedent of the (mostly unused)
cached_attrs, and we failed to update it when a cached (but perhaps
inactive) vnode was found during VOP_LOOKUP to have a different size than
cached.

As noted in the code comment, this can occur in distributed filesystems or
with other kinds of irregular file behavior (anything is possible in FUSE).

We do something similar in fuse_vnop_getattr already.

PR:		230258 (as reported in description; other issues explored in
			comments are not all resolved)
Reported by:	MooseFS FreeBSD Team <freebsd AT moosefs.com>
Submitted by:	Jakub Kruszona-Zawadzki <acid AT moosefs.com> (earlier version)
2019-02-15 22:55:13 +00:00
..
fuse_debug.h sys: further adoption of SPDX licensing ID tags. 2017-11-20 19:43:44 +00:00
fuse_device.c sys: further adoption of SPDX licensing ID tags. 2017-11-20 19:43:44 +00:00
fuse_file.c FUSE: Remove some set-but-not-used variables 2018-08-08 04:46:03 +00:00
fuse_file.h sys: further adoption of SPDX licensing ID tags. 2017-11-20 19:43:44 +00:00
fuse_internal.c FUSE: Respect userspace FS "do-not-cache" of path components 2019-02-15 22:50:31 +00:00
fuse_internal.h FUSE: Respect userspace FS "do-not-cache" of file attributes 2019-02-15 22:49:15 +00:00
fuse_io.c FUSE: The FUSE design expects writethrough caching 2019-02-15 22:52:49 +00:00
fuse_io.h sys: further adoption of SPDX licensing ID tags. 2017-11-20 19:43:44 +00:00
fuse_ipc.c sys: further adoption of SPDX licensing ID tags. 2017-11-20 19:43:44 +00:00
fuse_ipc.h FUSE: The FUSE design expects writethrough caching 2019-02-15 22:52:49 +00:00
fuse_kernel.h FUSE extattrs: fix issue when neither uio nor size were not passed to VOP_*. 2018-08-21 18:39:47 +00:00
fuse_main.c Allocate pager bufs from UMA instead of 80-ish mutex protected linked list. 2019-01-15 01:02:16 +00:00
fuse_node.c FUSE: The FUSE design expects writethrough caching 2019-02-15 22:52:49 +00:00
fuse_node.h FUSE: Respect userspace FS "do-not-cache" of path components 2019-02-15 22:50:31 +00:00
fuse_param.h Update link count handling in fuse for post-ino64. 2017-12-19 22:40:54 +00:00
fuse_vfsops.c FUSE: Respect userspace FS "do-not-cache" of path components 2019-02-15 22:50:31 +00:00
fuse_vnops.c FUSE: Refresh cached file size when it changes (lookup) 2019-02-15 22:55:13 +00:00
fuse.h sys: further adoption of SPDX licensing ID tags. 2017-11-20 19:43:44 +00:00