summaryrefslogtreecommitdiffhomepage
path: root/pkg/sentry/vfs/vfs_state_autogen.go
diff options
context:
space:
mode:
authorgVisor bot <gvisor-bot@google.com>2021-01-28 20:40:59 +0000
committergVisor bot <gvisor-bot@google.com>2021-01-28 20:40:59 +0000
commit3e42041191403bc415a8d6798137d7ea5a446329 (patch)
tree6b9548f90defce102432b0936f315c5bc61e684c /pkg/sentry/vfs/vfs_state_autogen.go
parentd291bc819943847b5281e43c0d600722c65d5f0c (diff)
parentd8c330254a7df21cb5edac3440b62a512fcc8d2d (diff)
Merge release-20210125.0-15-gd8c330254 (automated)
Diffstat (limited to 'pkg/sentry/vfs/vfs_state_autogen.go')
-rw-r--r--pkg/sentry/vfs/vfs_state_autogen.go30
1 files changed, 30 insertions, 0 deletions
diff --git a/pkg/sentry/vfs/vfs_state_autogen.go b/pkg/sentry/vfs/vfs_state_autogen.go
index 006d315be..c048676ea 100644
--- a/pkg/sentry/vfs/vfs_state_autogen.go
+++ b/pkg/sentry/vfs/vfs_state_autogen.go
@@ -1170,6 +1170,35 @@ func (r *MountNamespaceRefs) StateLoad(stateSourceObject state.Source) {
stateSourceObject.AfterLoad(r.afterLoad)
}
+func (fd *opathFD) StateTypeName() string {
+ return "pkg/sentry/vfs.opathFD"
+}
+
+func (fd *opathFD) StateFields() []string {
+ return []string{
+ "vfsfd",
+ "FileDescriptionDefaultImpl",
+ "NoLockFD",
+ }
+}
+
+func (fd *opathFD) beforeSave() {}
+
+func (fd *opathFD) StateSave(stateSinkObject state.Sink) {
+ fd.beforeSave()
+ stateSinkObject.Save(0, &fd.vfsfd)
+ stateSinkObject.Save(1, &fd.FileDescriptionDefaultImpl)
+ stateSinkObject.Save(2, &fd.NoLockFD)
+}
+
+func (fd *opathFD) afterLoad() {}
+
+func (fd *opathFD) StateLoad(stateSourceObject state.Source) {
+ stateSourceObject.Load(0, &fd.vfsfd)
+ stateSourceObject.Load(1, &fd.FileDescriptionDefaultImpl)
+ stateSourceObject.Load(2, &fd.NoLockFD)
+}
+
func (g *GetDentryOptions) StateTypeName() string {
return "pkg/sentry/vfs.GetDentryOptions"
}
@@ -1858,6 +1887,7 @@ func init() {
state.Register((*MountNamespace)(nil))
state.Register((*umountRecursiveOptions)(nil))
state.Register((*MountNamespaceRefs)(nil))
+ state.Register((*opathFD)(nil))
state.Register((*GetDentryOptions)(nil))
state.Register((*MkdirOptions)(nil))
state.Register((*MknodOptions)(nil))