gvisor/pkg
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
..
abi Update comment reference 2018-08-02 15:56:40 -07:00
amutex stateify: support explicit annotation mode; convert refs and stack packages. 2018-07-27 10:17:21 -07:00
atomicbitops stateify: support explicit annotation mode; convert refs and stack packages. 2018-07-27 10:17:21 -07:00
binary stateify: support explicit annotation mode; convert refs and stack packages. 2018-07-27 10:17:21 -07:00
bits stateify: support explicit annotation mode; convert refs and stack packages. 2018-07-27 10:17:21 -07:00
bpf Automated rollback of changelist 207037226 2018-08-02 10:42:48 -07:00
compressio stateify: support explicit annotation mode; convert refs and stack packages. 2018-07-27 10:17:21 -07:00
control stateify: support explicit annotation mode; convert refs and stack packages. 2018-07-27 10:17:21 -07:00
cpuid Automated rollback of changelist 207037226 2018-08-02 10:42:48 -07:00
dhcp Move stack clock to options struct 2018-08-01 20:22:02 -07:00
eventchannel stateify: support explicit annotation mode; convert refs and stack packages. 2018-07-27 10:17:21 -07:00
fd stateify: support explicit annotation mode; convert refs and stack packages. 2018-07-27 10:17:21 -07:00
gate stateify: support explicit annotation mode; convert refs and stack packages. 2018-07-27 10:17:21 -07:00
hashio stateify: support explicit annotation mode; convert refs and stack packages. 2018-07-27 10:17:21 -07:00
ilist Automated rollback of changelist 207037226 2018-08-02 10:42:48 -07:00
linewriter stateify: support explicit annotation mode; convert refs and stack packages. 2018-07-27 10:17:21 -07:00
log stateify: support explicit annotation mode; convert refs and stack packages. 2018-07-27 10:17:21 -07:00
metric stateify: support explicit annotation mode; convert refs and stack packages. 2018-07-27 10:17:21 -07:00
p9 stateify: support explicit annotation mode; convert refs and stack packages. 2018-07-27 10:17:21 -07:00
rand stateify: support explicit annotation mode; convert refs and stack packages. 2018-07-27 10:17:21 -07:00
refs stateify: support explicit annotation mode; convert refs and stack packages. 2018-07-27 10:17:21 -07:00
seccomp stateify: support explicit annotation mode; convert refs and stack packages. 2018-07-27 10:17:21 -07:00
secio stateify: support explicit annotation mode; convert refs and stack packages. 2018-07-27 10:17:21 -07:00
segment Automated rollback of changelist 207037226 2018-08-02 10:42:48 -07:00
sentry fs: Add new cache policy "remote_revalidate". 2018-08-07 11:43:41 -07:00
sleep stateify: support explicit annotation mode; convert refs and stack packages. 2018-07-27 10:17:21 -07:00
state stateify: support explicit annotation mode; convert refs and stack packages. 2018-07-27 10:17:21 -07:00
sync stateify: support explicit annotation mode; convert refs and stack packages. 2018-07-27 10:17:21 -07:00
syserr stateify: support explicit annotation mode; convert refs and stack packages. 2018-07-27 10:17:21 -07:00
syserror stateify: support explicit annotation mode; convert refs and stack packages. 2018-07-27 10:17:21 -07:00
tcpip Netstack doesn't handle sending after SHUT_WR correctly. 2018-08-07 07:57:20 -07:00
tmutex stateify: support explicit annotation mode; convert refs and stack packages. 2018-07-27 10:17:21 -07:00
unet stateify: support explicit annotation mode; convert refs and stack packages. 2018-07-27 10:17:21 -07:00
urpc stateify: support explicit annotation mode; convert refs and stack packages. 2018-07-27 10:17:21 -07:00
waiter Automated rollback of changelist 207037226 2018-08-02 10:42:48 -07:00