gvisor/pkg/p9
Fabricio Voznika 37a217aca4 Implement setattr+clunk in 9P
This is to cover the common pattern: open->read/write->close,
where SetAttr needs to be called to update atime/mtime before
the file is closed.

Benchmark results:

BM_OpenReadClose/10240 CPU
setattr+clunk: 63783 ns
VFS2:          68109 ns
VFS1:          72507 ns

Updates #1198

PiperOrigin-RevId: 329628461
2020-09-01 19:22:12 -07:00
..
p9test Implement setattr+clunk in 9P 2020-09-01 19:22:12 -07:00
BUILD Move p9.pool to a separate package 2020-02-06 10:07:45 -08:00
buffer.go Un-export p9 message encode/decode functions. 2020-02-14 12:23:10 -08:00
buffer_test.go Change copyright notice to "The gVisor Authors" 2019-04-29 14:26:23 -07:00
client.go Return EIO from p9 if sending/receiving fails. 2020-04-10 11:36:57 -07:00
client_file.go Implement setattr+clunk in 9P 2020-09-01 19:22:12 -07:00
client_test.go Eliminate one allocation per send/recv for non-flipcall transport. 2020-08-11 16:43:23 -07:00
file.go Implement setattr+clunk in 9P 2020-09-01 19:22:12 -07:00
handlers.go Implement setattr+clunk in 9P 2020-09-01 19:22:12 -07:00
messages.go Implement setattr+clunk in 9P 2020-09-01 19:22:12 -07:00
messages_test.go Implement setattr+clunk in 9P 2020-09-01 19:22:12 -07:00
p9.go Implement setattr+clunk in 9P 2020-09-01 19:22:12 -07:00
p9_test.go Change copyright notice to "The gVisor Authors" 2019-04-29 14:26:23 -07:00
path_tree.go New sync package. 2020-01-09 22:02:24 -08:00
server.go Remove use of channels from p9.connState legacy transport. 2020-08-19 11:58:59 -07:00
transport.go Eliminate one allocation per send/recv for non-flipcall transport. 2020-08-11 16:43:23 -07:00
transport_flipcall.go Return EIO from p9 if sending/receiving fails. 2020-04-10 11:36:57 -07:00
transport_test.go Eliminate one allocation per send/recv for non-flipcall transport. 2020-08-11 16:43:23 -07:00
version.go Implement setattr+clunk in 9P 2020-09-01 19:22:12 -07:00
version_test.go Change copyright notice to "The gVisor Authors" 2019-04-29 14:26:23 -07:00