gvisor/pkg/sentry/fs/gofer
Fabricio Voznika 55e8eb775b Make cacheRemoteRevalidating detect changes to file size
When file size changes outside the sandbox, page cache was not
refreshing file size which is required for cacheRemoteRevalidating.
In fact, cacheRemoteRevalidating should be skipping the cache
completely since it's not really benefiting from it. The cache is
cache is already bypassed for unstable attributes (see
cachePolicy.cacheUAttrs). And althought the cache is called to
map pages, they will always miss the cache and map directly from
the host.

Created a HostMappable struct that maps directly to the host and
use it for files with cacheRemoteRevalidating.

Closes #124

PiperOrigin-RevId: 230998440
Change-Id: Ic5f632eabe33b47241e05e98c95e9b2090ae08fc
2019-01-25 17:23:07 -08:00
..
BUILD Convert Unix transport to syserr 2018-10-24 11:05:08 -07:00
attr.go Use correct company name in copyright header 2018-10-19 16:35:11 -07:00
cache_policy.go Make cacheRemoteRevalidating detect changes to file size 2019-01-25 17:23:07 -08:00
context_file.go Track paths and provide a rename hook. 2018-10-23 00:20:15 -07:00
device.go Use correct company name in copyright header 2018-10-19 16:35:11 -07:00
file.go Make cacheRemoteRevalidating detect changes to file size 2019-01-25 17:23:07 -08:00
file_state.go Use correct company name in copyright header 2018-10-19 16:35:11 -07:00
fs.go Remove fs.Handle, ramfs.Entry, and all the DeprecatedFileOperations. 2019-01-14 20:34:28 -08:00
gofer_test.go Deflake gofer_test. 2018-12-20 17:23:26 -08:00
handles.go Use correct company name in copyright header 2018-10-19 16:35:11 -07:00
inode.go Make cacheRemoteRevalidating detect changes to file size 2019-01-25 17:23:07 -08:00
inode_state.go Use correct company name in copyright header 2018-10-19 16:35:11 -07:00
path.go Make cacheRemoteRevalidating detect changes to file size 2019-01-25 17:23:07 -08:00
session.go Make cacheRemoteRevalidating detect changes to file size 2019-01-25 17:23:07 -08:00
session_state.go Track paths and provide a rename hook. 2018-10-23 00:20:15 -07:00
socket.go Convert Unix transport to syserr 2018-10-24 11:05:08 -07:00
util.go Use correct company name in copyright header 2018-10-19 16:35:11 -07:00