summaryrefslogtreecommitdiffhomepage
path: root/pkg/sentry/fs/tty/master.go
diff options
context:
space:
mode:
authorgVisor bot <gvisor-bot@google.com>2019-11-27 02:23:28 +0000
committergVisor bot <gvisor-bot@google.com>2019-11-27 02:23:28 +0000
commit71e5ce0d31623f55021f9935db29029b2ab5523a (patch)
tree5adcb6f0e1c8de11051ac09ef6c1c7bf5766bc83 /pkg/sentry/fs/tty/master.go
parent38a00b7cdbd1d3f0b3fe49157e402b32f5c989e8 (diff)
parent20279c305ece6a458006999c8dafc5672ca92803 (diff)
Merge release-20191114.0-39-g20279c3 (automated)
Diffstat (limited to 'pkg/sentry/fs/tty/master.go')
-rw-r--r--pkg/sentry/fs/tty/master.go6
1 files changed, 5 insertions, 1 deletions
diff --git a/pkg/sentry/fs/tty/master.go b/pkg/sentry/fs/tty/master.go
index bc56be696..934828c12 100644
--- a/pkg/sentry/fs/tty/master.go
+++ b/pkg/sentry/fs/tty/master.go
@@ -32,7 +32,6 @@ import (
// +stateify savable
type masterInodeOperations struct {
fsutil.SimpleFileInode
- fsutil.InodeNoopTruncate
// d is the containing dir.
d *dirInodeOperations
@@ -77,6 +76,11 @@ func newMasterInode(ctx context.Context, d *dirInodeOperations, owner fs.FileOwn
func (mi *masterInodeOperations) Release(ctx context.Context) {
}
+// Truncate implements fs.InodeOperations.Truncate.
+func (masterInodeOperations) Truncate(context.Context, *fs.Inode, int64) error {
+ return nil
+}
+
// GetFile implements fs.InodeOperations.GetFile.
//
// It allocates a new terminal.