summaryrefslogtreecommitdiffhomepage
path: root/pkg/sentry/fs
diff options
context:
space:
mode:
authorKevin Krakauer <krakauer@google.com>2019-11-08 12:18:40 -0800
committergVisor bot <gvisor-bot@google.com>2019-11-08 12:20:11 -0800
commitaf58a4e3bb0ba81c103429317eb0c2735450136c (patch)
tree1d515e994c45ba68ae8c0662c3997237a1e3bd29 /pkg/sentry/fs
parent66ebb6575f929a389d3c929977ed5e31d706fcfe (diff)
Automated rollback of changelist 278417533
PiperOrigin-RevId: 279365629
Diffstat (limited to 'pkg/sentry/fs')
-rw-r--r--pkg/sentry/fs/inode_operations.go2
1 files changed, 0 insertions, 2 deletions
diff --git a/pkg/sentry/fs/inode_operations.go b/pkg/sentry/fs/inode_operations.go
index d6c35c2dc..5cde9d215 100644
--- a/pkg/sentry/fs/inode_operations.go
+++ b/pkg/sentry/fs/inode_operations.go
@@ -221,8 +221,6 @@ type InodeOperations interface {
// sys_ftruncate.
//
// Implementations need not check that length >= 0.
- //
- // Truncate must only be called on regular files.
Truncate(ctx context.Context, inode *Inode, size int64) error
// Allocate allows the caller to reserve disk space for the inode.