gvisor/runsc
Nicolas Lacasse 0b3bfe2ea3 fs: Fix remote-revalidate cache policy.
When revalidating a Dirent, if the inode id is the same, then we don't need to
throw away the entire Dirent. We can just update the unstable attributes in
place.

If the inode id has changed, then the remote file has been deleted or moved,
and we have no choice but to throw away the dirent we have a look up another.
In this case, we may still end up losing a mounted dirent that is a child of
the revalidated dirent. However, that seems appropriate here because the entire
mount point has been pulled out from underneath us.

Because gVisor's overlay is at the Inode level rather than the Dirent level, we
must pass the parent Inode and name along with the Inode that is being
revalidated.

PiperOrigin-RevId: 210431270
Change-Id: I705caef9c68900234972d5aac4ae3a78c61c7d42
2018-08-27 14:26:29 -07:00
..
boot Put fsgofer inside chroot 2018-08-27 11:10:14 -07:00
cmd Put fsgofer inside chroot 2018-08-27 11:10:14 -07:00
console runsc: Terminal support for "docker exec -ti". 2018-08-24 17:43:21 -07:00
container fs: Fix remote-revalidate cache policy. 2018-08-27 14:26:29 -07:00
fsgofer runsc: fsgofer should return a unique QID.Path for each file. 2018-08-27 13:52:14 -07:00
sandbox Put fsgofer inside chroot 2018-08-27 11:10:14 -07:00
specutils Put fsgofer inside chroot 2018-08-27 11:10:14 -07:00
test Put fsgofer inside chroot 2018-08-27 11:10:14 -07:00
tools/dockercfg Add tool to configure runtime settings in docker 2018-06-20 13:01:16 -07:00
BUILD Add runsc-race target. 2018-08-27 13:37:03 -07:00
main.go runsc: Fix instances of file access "proxy". 2018-08-15 09:34:18 -07:00