gvisor/pkg
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
..
abi slight changes to pkg/abi 2019-10-24 09:15:29 +00:00
amutex Remove go_test from go_stateify and go_marshal 2019-09-12 15:10:17 -07:00
atomicbitops Enable pkg/atomicbitops support on arm64. 2019-10-09 03:09:52 +00:00
binary Remove go_test from go_stateify and go_marshal 2019-09-12 15:10:17 -07:00
bits Reorder BUILD license and load functions in gvisor. 2019-10-16 16:40:30 -07:00
bpf Reorder BUILD license and load functions in gvisor. 2019-10-16 16:40:30 -07:00
compressio Remove go_test from go_stateify and go_marshal 2019-09-12 15:10:17 -07:00
control Update canonical repository. 2019-06-13 16:50:15 -07:00
cpuid Reorder BUILD license and load functions in gvisor. 2019-10-16 16:40:30 -07:00
eventchannel Remove go_test from go_stateify and go_marshal 2019-09-12 15:10:17 -07:00
fd Cleanup host UDS support 2019-10-18 15:33:03 -07:00
fdchannel Remove go_test from go_stateify and go_marshal 2019-09-12 15:10:17 -07:00
fdnotifier Change syscall.EPOLLET to unix.EPOLLET 2019-08-05 23:10:08 +00:00
flipcall Don't log "p9.channel.service: flipcall connection shutdown". 2019-11-01 11:45:02 -07:00
fspath Remove go_test from go_stateify and go_marshal 2019-09-12 15:10:17 -07:00
gate Remove go_test from go_stateify and go_marshal 2019-09-12 15:10:17 -07:00
ilist Remove go_test from go_stateify and go_marshal 2019-09-12 15:10:17 -07:00
linewriter Remove go_test from go_stateify and go_marshal 2019-09-12 15:10:17 -07:00
log Remove go_test from go_stateify and go_marshal 2019-09-12 15:10:17 -07:00
memutil Update canonical repository. 2019-06-13 16:50:15 -07:00
metric internal BUILD file cleanup. 2019-09-23 08:25:13 -07:00
p9 Add p9.OpenTruncate. 2019-11-06 17:11:58 -08:00
procid Update build tags to allow Go 1.14 2019-10-29 13:18:16 -07:00
rand Update canonical repository. 2019-06-13 16:50:15 -07:00
refs Reorder BUILD license and load functions in gvisor. 2019-10-16 16:40:30 -07:00
seccomp gvisor: change syscall.RawSyscall to syscall.RawSyscall6 where required 2019-09-24 23:47:42 -07:00
secio Remove go_test from go_stateify and go_marshal 2019-09-12 15:10:17 -07:00
segment Reorder BUILD license and load functions in gvisor. 2019-10-16 16:40:30 -07:00
sentry Check that a file is a regular file with open(O_TRUNC). 2019-11-04 10:58:29 -08:00
sleep Update build tags to allow Go 1.14 2019-10-29 13:18:16 -07:00
state Add context to state. 2019-10-31 18:03:24 -07:00
syserr netstack/udp: connect with the AF_UNSPEC address family means disconnect 2019-07-03 14:19:02 -07:00
syserror Remove go_test from go_stateify and go_marshal 2019-09-12 15:10:17 -07:00
tcpip Discover default routers from Router Advertisements 2019-11-06 16:29:58 -08:00
tmutex Remove go_test from go_stateify and go_marshal 2019-09-12 15:10:17 -07:00
unet Remove go_test from go_stateify and go_marshal 2019-09-12 15:10:17 -07:00
urpc Remove go_test from go_stateify and go_marshal 2019-09-12 15:10:17 -07:00
waiter Reorder BUILD license and load functions in netstack. 2019-10-14 15:21:59 -07:00