diff options
author | Jamie Liu <jamieliu@google.com> | 2020-05-26 21:42:07 -0700 |
---|---|---|
committer | gVisor bot <gvisor-bot@google.com> | 2020-05-26 21:43:26 -0700 |
commit | af3121a52383fb60579d769994be5d91bd788015 (patch) | |
tree | 7ab26ef04f70f2bfa25433c262cfd0564a083af1 /pkg/sentry/fsimpl/tmpfs/regular_file.go | |
parent | 8e2c5d951ea04f47ad1d37bab196a99fc56f5521 (diff) |
Implement splice(2) and tee(2) for VFS2.
Updates #138
PiperOrigin-RevId: 313326354
Diffstat (limited to 'pkg/sentry/fsimpl/tmpfs/regular_file.go')
-rw-r--r-- | pkg/sentry/fsimpl/tmpfs/regular_file.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/pkg/sentry/fsimpl/tmpfs/regular_file.go b/pkg/sentry/fsimpl/tmpfs/regular_file.go index 3f433d666..fee174375 100644 --- a/pkg/sentry/fsimpl/tmpfs/regular_file.go +++ b/pkg/sentry/fsimpl/tmpfs/regular_file.go @@ -312,7 +312,7 @@ func (fd *regularFileFD) PWrite(ctx context.Context, src usermem.IOSequence, off f := fd.inode().impl.(*regularFile) if end := offset + srclen; end < offset { // Overflow. - return 0, syserror.EFBIG + return 0, syserror.EINVAL } var err error |