gvisor/pkg/sentry/fs/gofer
Nicolas Lacasse a38f41b464 fs: Add new cache policy "remote_revalidate".
This CL adds a new cache-policy for gofer filesystems that uses the host page
cache, but causes dirents to be reloaded on each Walk, and does not cache
readdir results.

This policy is useful when the remote filesystem may change out from underneath
us, as any remote changes will be reflected on the next Walk.

Importantly, this cache policy is only consistent if we do not use gVisor's
internal page cache, since that page cache is tied to the Inode and may be
thrown away upon Revalidation.

This cache policy should only be used when the gofer supports donating host
FDs, since then gVisor will make use of the host kernel page cache, which will
be consistent for all open files in the gofer. In fact, a panic will be raised
if a file is opened without a donated FD.

PiperOrigin-RevId: 207752937
Change-Id: I233cb78b4695bbe00a4605ae64080a47629329b8
2018-08-07 11:43:41 -07:00
..
BUILD Automated rollback of changelist 207037226 2018-08-02 10:42:48 -07:00
attr.go Check in gVisor. 2018-04-28 01:44:26 -04:00
cache_policy.go fs: Add new cache policy "remote_revalidate". 2018-08-07 11:43:41 -07:00
context_file.go Check in gVisor. 2018-04-28 01:44:26 -04:00
device.go Check in gVisor. 2018-04-28 01:44:26 -04:00
file.go fs: Add new cache policy "remote_revalidate". 2018-08-07 11:43:41 -07:00
file_state.go Capture restore file system corruption errors in exit error. 2018-05-08 11:36:59 -07:00
fs.go Automated rollback of changelist 207037226 2018-08-02 10:42:48 -07:00
gofer_test.go fs: Add new cache policy "remote_revalidate". 2018-08-07 11:43:41 -07:00
handles.go Simplify some handle logic. 2018-06-22 14:10:30 -07:00
inode.go Automated rollback of changelist 207037226 2018-08-02 10:42:48 -07:00
inode_state.go Sets the restore environment for restoring a container. 2018-06-29 14:47:40 -07:00
path.go Fix lock-ordering violation in Create by logging BaseName instead of FullName. 2018-07-18 11:49:50 -07:00
session.go Automated rollback of changelist 207037226 2018-08-02 10:42:48 -07:00
session_state.go Runsc checkpoint works. 2018-06-12 13:25:23 -07:00
socket.go Release mutex in BidirectionalConnect to avoid deadlock. 2018-05-16 13:07:12 -07:00
util.go Check in gVisor. 2018-04-28 01:44:26 -04:00