diff options
author | Nicolas Lacasse <nlacasse@google.com> | 2018-08-07 11:42:29 -0700 |
---|---|---|
committer | Shentubot <shentubot@google.com> | 2018-08-07 11:43:41 -0700 |
commit | a38f41b4643520a3b2a078e73ec012ffd3f71f54 (patch) | |
tree | c2dc156a16f2a2643b418295a9a6c21bdc0b0c38 /runsc/test/image | |
parent | c348d0786388ded1a4bad3c98000b4653724c764 (diff) |
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
Diffstat (limited to 'runsc/test/image')
0 files changed, 0 insertions, 0 deletions