/[base]
ViewVC logotype

Revision 345892


Jump to revision: Previous Next
Author: asomers
Date: Thu Apr 4 20:30:14 2019 UTC (5 years, 2 months ago)
Changed paths: 5
Log Message:
fusefs: properly handle FOPEN_KEEP_CACHE

If a fuse file system returne FOPEN_KEEP_CACHE in the open or create
response, then the client is supposed to _not_ clear its caches for that
file.  I don't know why clearing the caches would be the default given that
there's a separate flag to bypass the cache altogether, but that's the way
it is.  fusefs(5) will now honor this flag.

Our behavior is slightly different than Linux's because we reuse file
handles.  That means that open(2) wont't clear the cache if there's a
reusable file handle, even if the file server wouldn't have sent
FOPEN_KEEP_CACHE had we opened a new file handle like Linux does.

PR:		236560
Sponsored by:	The FreeBSD Foundation


Changed paths

Path Details
Directoryprojects/fuse2/sys/fs/fuse/fuse_file.c modified , text changed
Directoryprojects/fuse2/sys/fs/fuse/fuse_file.h modified , text changed
Directoryprojects/fuse2/sys/fs/fuse/fuse_node.c modified , text changed
Directoryprojects/fuse2/sys/fs/fuse/fuse_vnops.c modified , text changed
Directoryprojects/fuse2/tests/sys/fs/fusefs/read.cc modified , text changed

  ViewVC Help
Powered by ViewVC 1.1.27