diff options
author | gVisor bot <gvisor-bot@google.com> | 2020-10-08 01:32:17 +0000 |
---|---|---|
committer | gVisor bot <gvisor-bot@google.com> | 2020-10-08 01:32:17 +0000 |
commit | 8f70c8003e9d132fc766ed7d92ce805c093d518b (patch) | |
tree | 6d77a3246e3f04605790d410e7630cb910704ced /pkg/sentry/fsbridge | |
parent | 8f9d99c812b7599c52ed98f80c1a33717758a5c6 (diff) | |
parent | a55bd73d4802112a7055de8663e947b9c0f42a2e (diff) |
Merge release-20200928.0-66-ga55bd73d4 (automated)
Diffstat (limited to 'pkg/sentry/fsbridge')
-rw-r--r-- | pkg/sentry/fsbridge/fsbridge_state_autogen.go | 88 |
1 files changed, 44 insertions, 44 deletions
diff --git a/pkg/sentry/fsbridge/fsbridge_state_autogen.go b/pkg/sentry/fsbridge/fsbridge_state_autogen.go index d69b50c28..37696303d 100644 --- a/pkg/sentry/fsbridge/fsbridge_state_autogen.go +++ b/pkg/sentry/fsbridge/fsbridge_state_autogen.go @@ -6,34 +6,34 @@ import ( "gvisor.dev/gvisor/pkg/state" ) -func (x *fsFile) StateTypeName() string { +func (f *fsFile) StateTypeName() string { return "pkg/sentry/fsbridge.fsFile" } -func (x *fsFile) StateFields() []string { +func (f *fsFile) StateFields() []string { return []string{ "file", } } -func (x *fsFile) beforeSave() {} +func (f *fsFile) beforeSave() {} -func (x *fsFile) StateSave(m state.Sink) { - x.beforeSave() - m.Save(0, &x.file) +func (f *fsFile) StateSave(stateSinkObject state.Sink) { + f.beforeSave() + stateSinkObject.Save(0, &f.file) } -func (x *fsFile) afterLoad() {} +func (f *fsFile) afterLoad() {} -func (x *fsFile) StateLoad(m state.Source) { - m.Load(0, &x.file) +func (f *fsFile) StateLoad(stateSourceObject state.Source) { + stateSourceObject.Load(0, &f.file) } -func (x *fsLookup) StateTypeName() string { +func (f *fsLookup) StateTypeName() string { return "pkg/sentry/fsbridge.fsLookup" } -func (x *fsLookup) StateFields() []string { +func (f *fsLookup) StateFields() []string { return []string{ "mntns", "root", @@ -41,51 +41,51 @@ func (x *fsLookup) StateFields() []string { } } -func (x *fsLookup) beforeSave() {} +func (f *fsLookup) beforeSave() {} -func (x *fsLookup) StateSave(m state.Sink) { - x.beforeSave() - m.Save(0, &x.mntns) - m.Save(1, &x.root) - m.Save(2, &x.workingDir) +func (f *fsLookup) StateSave(stateSinkObject state.Sink) { + f.beforeSave() + stateSinkObject.Save(0, &f.mntns) + stateSinkObject.Save(1, &f.root) + stateSinkObject.Save(2, &f.workingDir) } -func (x *fsLookup) afterLoad() {} +func (f *fsLookup) afterLoad() {} -func (x *fsLookup) StateLoad(m state.Source) { - m.Load(0, &x.mntns) - m.Load(1, &x.root) - m.Load(2, &x.workingDir) +func (f *fsLookup) StateLoad(stateSourceObject state.Source) { + stateSourceObject.Load(0, &f.mntns) + stateSourceObject.Load(1, &f.root) + stateSourceObject.Load(2, &f.workingDir) } -func (x *VFSFile) StateTypeName() string { +func (v *VFSFile) StateTypeName() string { return "pkg/sentry/fsbridge.VFSFile" } -func (x *VFSFile) StateFields() []string { +func (v *VFSFile) StateFields() []string { return []string{ "file", } } -func (x *VFSFile) beforeSave() {} +func (v *VFSFile) beforeSave() {} -func (x *VFSFile) StateSave(m state.Sink) { - x.beforeSave() - m.Save(0, &x.file) +func (v *VFSFile) StateSave(stateSinkObject state.Sink) { + v.beforeSave() + stateSinkObject.Save(0, &v.file) } -func (x *VFSFile) afterLoad() {} +func (v *VFSFile) afterLoad() {} -func (x *VFSFile) StateLoad(m state.Source) { - m.Load(0, &x.file) +func (v *VFSFile) StateLoad(stateSourceObject state.Source) { + stateSourceObject.Load(0, &v.file) } -func (x *vfsLookup) StateTypeName() string { +func (v *vfsLookup) StateTypeName() string { return "pkg/sentry/fsbridge.vfsLookup" } -func (x *vfsLookup) StateFields() []string { +func (v *vfsLookup) StateFields() []string { return []string{ "mntns", "root", @@ -93,21 +93,21 @@ func (x *vfsLookup) StateFields() []string { } } -func (x *vfsLookup) beforeSave() {} +func (v *vfsLookup) beforeSave() {} -func (x *vfsLookup) StateSave(m state.Sink) { - x.beforeSave() - m.Save(0, &x.mntns) - m.Save(1, &x.root) - m.Save(2, &x.workingDir) +func (v *vfsLookup) StateSave(stateSinkObject state.Sink) { + v.beforeSave() + stateSinkObject.Save(0, &v.mntns) + stateSinkObject.Save(1, &v.root) + stateSinkObject.Save(2, &v.workingDir) } -func (x *vfsLookup) afterLoad() {} +func (v *vfsLookup) afterLoad() {} -func (x *vfsLookup) StateLoad(m state.Source) { - m.Load(0, &x.mntns) - m.Load(1, &x.root) - m.Load(2, &x.workingDir) +func (v *vfsLookup) StateLoad(stateSourceObject state.Source) { + stateSourceObject.Load(0, &v.mntns) + stateSourceObject.Load(1, &v.root) + stateSourceObject.Load(2, &v.workingDir) } func init() { |