summaryrefslogtreecommitdiffhomepage
path: root/pkg/sentry/fs
diff options
context:
space:
mode:
authorgVisor bot <gvisor-bot@google.com>2019-11-04 19:01:00 +0000
committergVisor bot <gvisor-bot@google.com>2019-11-04 19:01:00 +0000
commit40e8158c9c00186bf385771ee94292d8167e8073 (patch)
tree8b252e23a88712939798df8ed29af9cebdae2607 /pkg/sentry/fs
parentee17c270cc3578622d1bb9948724fafdcf4e5111 (diff)
parent4fdd69d681bb3abb68a043377a2fb0ec8a031d54 (diff)
Merge release-20190806.1-368-g4fdd69d (automated)
Diffstat (limited to 'pkg/sentry/fs')
-rw-r--r--pkg/sentry/fs/inode_operations.go2
1 files changed, 2 insertions, 0 deletions
diff --git a/pkg/sentry/fs/inode_operations.go b/pkg/sentry/fs/inode_operations.go
index 5cde9d215..d6c35c2dc 100644
--- a/pkg/sentry/fs/inode_operations.go
+++ b/pkg/sentry/fs/inode_operations.go
@@ -221,6 +221,8 @@ 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.