summaryrefslogtreecommitdiffhomepage
path: root/pkg/sentry/fsimpl/sockfs
diff options
context:
space:
mode:
Diffstat (limited to 'pkg/sentry/fsimpl/sockfs')
-rw-r--r--pkg/sentry/fsimpl/sockfs/sockfs_state_autogen.go66
1 files changed, 33 insertions, 33 deletions
diff --git a/pkg/sentry/fsimpl/sockfs/sockfs_state_autogen.go b/pkg/sentry/fsimpl/sockfs/sockfs_state_autogen.go
index bbc868a48..38bbf9eb5 100644
--- a/pkg/sentry/fsimpl/sockfs/sockfs_state_autogen.go
+++ b/pkg/sentry/fsimpl/sockfs/sockfs_state_autogen.go
@@ -6,56 +6,56 @@ import (
"gvisor.dev/gvisor/pkg/state"
)
-func (x *filesystemType) StateTypeName() string {
+func (f *filesystemType) StateTypeName() string {
return "pkg/sentry/fsimpl/sockfs.filesystemType"
}
-func (x *filesystemType) StateFields() []string {
+func (f *filesystemType) StateFields() []string {
return []string{}
}
-func (x *filesystemType) beforeSave() {}
+func (f *filesystemType) beforeSave() {}
-func (x *filesystemType) StateSave(m state.Sink) {
- x.beforeSave()
+func (f *filesystemType) StateSave(stateSinkObject state.Sink) {
+ f.beforeSave()
}
-func (x *filesystemType) afterLoad() {}
+func (f *filesystemType) afterLoad() {}
-func (x *filesystemType) StateLoad(m state.Source) {
+func (f *filesystemType) StateLoad(stateSourceObject state.Source) {
}
-func (x *filesystem) StateTypeName() string {
+func (f *filesystem) StateTypeName() string {
return "pkg/sentry/fsimpl/sockfs.filesystem"
}
-func (x *filesystem) StateFields() []string {
+func (f *filesystem) StateFields() []string {
return []string{
"Filesystem",
"devMinor",
}
}
-func (x *filesystem) beforeSave() {}
+func (f *filesystem) beforeSave() {}
-func (x *filesystem) StateSave(m state.Sink) {
- x.beforeSave()
- m.Save(0, &x.Filesystem)
- m.Save(1, &x.devMinor)
+func (f *filesystem) StateSave(stateSinkObject state.Sink) {
+ f.beforeSave()
+ stateSinkObject.Save(0, &f.Filesystem)
+ stateSinkObject.Save(1, &f.devMinor)
}
-func (x *filesystem) afterLoad() {}
+func (f *filesystem) afterLoad() {}
-func (x *filesystem) StateLoad(m state.Source) {
- m.Load(0, &x.Filesystem)
- m.Load(1, &x.devMinor)
+func (f *filesystem) StateLoad(stateSourceObject state.Source) {
+ stateSourceObject.Load(0, &f.Filesystem)
+ stateSourceObject.Load(1, &f.devMinor)
}
-func (x *inode) StateTypeName() string {
+func (i *inode) StateTypeName() string {
return "pkg/sentry/fsimpl/sockfs.inode"
}
-func (x *inode) StateFields() []string {
+func (i *inode) StateFields() []string {
return []string{
"InodeAttrs",
"InodeNoopRefCount",
@@ -64,23 +64,23 @@ func (x *inode) StateFields() []string {
}
}
-func (x *inode) beforeSave() {}
+func (i *inode) beforeSave() {}
-func (x *inode) StateSave(m state.Sink) {
- x.beforeSave()
- m.Save(0, &x.InodeAttrs)
- m.Save(1, &x.InodeNoopRefCount)
- m.Save(2, &x.InodeNotDirectory)
- m.Save(3, &x.InodeNotSymlink)
+func (i *inode) StateSave(stateSinkObject state.Sink) {
+ i.beforeSave()
+ stateSinkObject.Save(0, &i.InodeAttrs)
+ stateSinkObject.Save(1, &i.InodeNoopRefCount)
+ stateSinkObject.Save(2, &i.InodeNotDirectory)
+ stateSinkObject.Save(3, &i.InodeNotSymlink)
}
-func (x *inode) afterLoad() {}
+func (i *inode) afterLoad() {}
-func (x *inode) StateLoad(m state.Source) {
- m.Load(0, &x.InodeAttrs)
- m.Load(1, &x.InodeNoopRefCount)
- m.Load(2, &x.InodeNotDirectory)
- m.Load(3, &x.InodeNotSymlink)
+func (i *inode) StateLoad(stateSourceObject state.Source) {
+ stateSourceObject.Load(0, &i.InodeAttrs)
+ stateSourceObject.Load(1, &i.InodeNoopRefCount)
+ stateSourceObject.Load(2, &i.InodeNotDirectory)
+ stateSourceObject.Load(3, &i.InodeNotSymlink)
}
func init() {