gvisor/pkg/sentry/kernel/pipe
Andrei Vagin 8ab0848c70 gvisor/fs: don't update file.offset for sockets, pipes, etc
sockets, pipes and other non-seekable file descriptors don't
use file.offset, so we don't need to update it.

With this change, we will be able to call file operations
without locking the file.mu mutex. This is already used for
pipes in the splice system call.

PiperOrigin-RevId: 253746644
2019-06-18 01:43:29 -07:00
..
BUILD Update canonical repository. 2019-06-13 16:50:15 -07:00
buffer.go Update canonical repository. 2019-06-13 16:50:15 -07:00
buffer_test.go Update canonical repository. 2019-06-13 16:50:15 -07:00
device.go Update canonical repository. 2019-06-13 16:50:15 -07:00
node.go Update canonical repository. 2019-06-13 16:50:15 -07:00
node_test.go Plumb context through more layers of filesytem. 2019-06-13 18:40:38 -07:00
pipe.go gvisor/fs: don't update file.offset for sockets, pipes, etc 2019-06-18 01:43:29 -07:00
pipe_test.go Update canonical repository. 2019-06-13 16:50:15 -07:00
reader.go Update canonical repository. 2019-06-13 16:50:15 -07:00
reader_writer.go Update canonical repository. 2019-06-13 16:50:15 -07:00
writer.go Update canonical repository. 2019-06-13 16:50:15 -07:00