gvisor/runsc/fsgofer
Jamie Liu f8ffadddb3 Add p9.OpenTruncate.
This is required to implement O_TRUNC correctly on filesystems backed by
gofers.

9P2000.L: "lopen prepares fid for file I/O. flags contains Linux open(2) flags
bits, e.g. O_RDONLY, O_RDWR, O_WRONLY."

open(2): "The argument flags must include one of the following access modes:
O_RDONLY, O_WRONLY, or O_RDWR. ... In addition, zero or more file creation
flags and file status flags can be bitwise-or'd in flags."

The reference 9P2000.L implementation also appears to expect arbitrary flags,
not just access modes, in Tlopen.flags:
https://github.com/chaos/diod/blob/master/diod/ops.c#L703

PiperOrigin-RevId: 278972683
2019-11-06 17:11:58 -08:00
..
filter Enable runsc/fsgofer support on arm64. 2019-10-30 05:21:36 +00:00
BUILD Enable runsc/fsgofer support on arm64. 2019-10-30 05:21:36 +00:00
fsgofer.go Add p9.OpenTruncate. 2019-11-06 17:11:58 -08:00
fsgofer_amd64_unsafe.go Enable runsc/fsgofer support on arm64. 2019-10-30 05:21:36 +00:00
fsgofer_arm64_unsafe.go Enable runsc/fsgofer support on arm64. 2019-10-30 05:21:36 +00:00
fsgofer_test.go Disallow opening of sockets if --fsgofer-host-uds=false 2019-09-26 18:16:02 -07:00
fsgofer_unsafe.go Enable runsc/fsgofer support on arm64. 2019-10-30 05:21:36 +00:00