diff options
author | Jamie Liu <jamieliu@google.com> | 2021-01-14 17:32:38 -0800 |
---|---|---|
committer | gVisor bot <gvisor-bot@google.com> | 2021-01-14 17:35:07 -0800 |
commit | e57ebcd37a7b9f98d80e594f2c0baf2220d7b830 (patch) | |
tree | c48d591cf3a7f24db2455f5d56b64674ea838baf /pkg/sentry/kernel/pipe/BUILD | |
parent | 95371cff350ef5c22c0e0b76ef9474c16e29a6f6 (diff) |
Simplify the pipe implementation.
- Remove the pipe package's dependence on the buffer package, which becomes
unused as a result. The buffer package is currently intended to serve two use
cases, pipes and temporary buffers, and does neither optimally as a result;
this change facilitates retooling the buffer package to better serve the
latter.
- Pass callbacks taking safemem.BlockSeq to the internal pipe I/O methods,
which makes most callbacks trivial.
- Fix VFS1's splice() and tee() to immediately return if a pipe returns a
partial write.
PiperOrigin-RevId: 351911375
Diffstat (limited to 'pkg/sentry/kernel/pipe/BUILD')
-rw-r--r-- | pkg/sentry/kernel/pipe/BUILD | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/pkg/sentry/kernel/pipe/BUILD b/pkg/sentry/kernel/pipe/BUILD index 99134e634..2c32d017d 100644 --- a/pkg/sentry/kernel/pipe/BUILD +++ b/pkg/sentry/kernel/pipe/BUILD @@ -12,6 +12,7 @@ go_library( "pipe_util.go", "reader.go", "reader_writer.go", + "save_restore.go", "vfs.go", "writer.go", ], @@ -19,7 +20,6 @@ go_library( deps = [ "//pkg/abi/linux", "//pkg/amutex", - "//pkg/buffer", "//pkg/context", "//pkg/marshal/primitive", "//pkg/safemem", |