4 Commits
Author SHA1 Message Date
Ayush RanjanandgVisor bot 7a918a4292 Chunkify p{read/write}v in hostfd package.
Instead of truncating iovecs when len(iovecs) > MaxReadWriteIov, we should
attempt a full write. There are multiple users of hostfd:
- tmpfs (when using file backend)
- gofer client
- hostinet
- fsimpl/host

These callers use hostfd to implement all read/write operations. Even though
read/write syscall semantics allow for short IO, Linux seems to be doing full
reads/writes. For compatibility, hostfd should attempt full IO.

PiperOrigin-RevId: 582050290
2023-11-13 12:34:34 -08:00
Adin ScannellandgVisor bot 1ceb814544 Add default_applicable_licenses rules to packages.
PiperOrigin-RevId: 513581243
2023-03-02 10:50:04 -08:00
Jamie LiuandgVisor bot 29683f3598 Cap iovec array length in //pkg/sentry/hostfd.
PiperOrigin-RevId: 341001328
2020-11-06 00:20:35 -08:00
Jamie LiuandgVisor bot e0c67014cb Factor fsimpl/gofer.host{Preadv,Pwritev} out of fsimpl/gofer.
Also fix returning EOF when 0 bytes are read.

PiperOrigin-RevId: 308089875
2020-04-23 11:08:24 -07:00