summaryrefslogtreecommitdiffhomepage
path: root/pkg/sentry/vfs/mount.go
diff options
context:
space:
mode:
authorgVisor bot <gvisor-bot@google.com>2020-02-14 21:44:54 +0000
committergVisor bot <gvisor-bot@google.com>2020-02-14 21:44:54 +0000
commit554d094fa3665815d8582f5cb1e5a68fd41b5ea1 (patch)
treea3af4032f5f12d84c5be5310115a2f968989882c /pkg/sentry/vfs/mount.go
parentd266dd12b9c9fa6c691a43fef3b63e37bd649dc6 (diff)
parente4c7f3e6f6c19f3259820a4c41b69e85c0454379 (diff)
Merge release-20200211.0-20-ge4c7f3e (automated)
Diffstat (limited to 'pkg/sentry/vfs/mount.go')
-rwxr-xr-xpkg/sentry/vfs/mount.go4
1 files changed, 4 insertions, 0 deletions
diff --git a/pkg/sentry/vfs/mount.go b/pkg/sentry/vfs/mount.go
index ad2c9fcf4..9912df799 100755
--- a/pkg/sentry/vfs/mount.go
+++ b/pkg/sentry/vfs/mount.go
@@ -38,6 +38,8 @@ import (
//
// Mount is analogous to Linux's struct mount. (gVisor does not distinguish
// between struct mount and struct vfsmount.)
+//
+// +stateify savable
type Mount struct {
// vfs, fs, and root are immutable. References are held on fs and root.
//
@@ -85,6 +87,8 @@ type Mount struct {
// MountNamespace methods require that a reference is held.
//
// MountNamespace is analogous to Linux's struct mnt_namespace.
+//
+// +stateify savable
type MountNamespace struct {
// root is the MountNamespace's root mount. root is immutable.
root *Mount