summaryrefslogtreecommitdiffhomepage
path: root/pkg/sentry
diff options
context:
space:
mode:
authorMichael Pratt <mpratt@google.com>2018-08-06 10:14:40 -0700
committerShentubot <shentubot@google.com>2018-08-06 10:15:56 -0700
commit42086fe8e1244d93e87f0cada9d0b1a8b764c6a8 (patch)
treeeee956eb5bae009e5da1557c49b3b169928a7c50 /pkg/sentry
parent3ec074897f9d0aba21bc9f41be18f52bfbeb599e (diff)
Make ramfs.File savable
In other news, apparently proc.fdInfo is the last user of ramfs.File. PiperOrigin-RevId: 207564572 Change-Id: I5a92515698cc89652b80bea9a32d309e14059869
Diffstat (limited to 'pkg/sentry')
-rw-r--r--pkg/sentry/fs/ramfs/file.go2
1 files changed, 2 insertions, 0 deletions
diff --git a/pkg/sentry/fs/ramfs/file.go b/pkg/sentry/fs/ramfs/file.go
index e8363c3e2..0b94d92a1 100644
--- a/pkg/sentry/fs/ramfs/file.go
+++ b/pkg/sentry/fs/ramfs/file.go
@@ -30,6 +30,8 @@ import (
// thus should only be used for small files.
//
// A File is not mappable.
+//
+// +stateify savable
type File struct {
Entry