]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
fusefs: implement attribute cache timeouts
authorasomers <asomers@FreeBSD.org>
Tue, 9 Apr 2019 00:47:38 +0000 (00:47 +0000)
committerasomers <asomers@FreeBSD.org>
Tue, 9 Apr 2019 00:47:38 +0000 (00:47 +0000)
commit69af536139845f94317517f1c433e5af05a8ac06
tree82211e2728bc4a58219612d9ae5bd80505d6fa83
parent6aa968104b1f787aea049bc1fbe2d4afc4159664
fusefs: implement attribute cache timeouts

The FUSE protocol allows the server to specify the timeout period for the
client's attribute and entry caches.  This commit implements the timeout
period for the attribute cache.  The entry cache's timeout period is
currently disabled because it panics, and is guarded by the
vfs.fusefs.lookup_cache_expire sysctl.

PR: 235773
Reported by: cem
Sponsored by: The FreeBSD Foundation
sys/fs/fuse/fuse_internal.c
sys/fs/fuse/fuse_internal.h
sys/fs/fuse/fuse_node.c
sys/fs/fuse/fuse_node.h
sys/fs/fuse/fuse_vnops.c
tests/sys/fs/fusefs/getattr.cc
tests/sys/fs/fusefs/lookup.cc