diff options
author | gVisor bot <gvisor-bot@google.com> | 2020-10-09 19:26:05 +0000 |
---|---|---|
committer | gVisor bot <gvisor-bot@google.com> | 2020-10-09 19:26:05 +0000 |
commit | 69aa120d401c6d6028aebe4c050cefb4794a60f1 (patch) | |
tree | 9b57d56a75d3900b35c7814bf1417057f8fac933 /pkg/sentry/fs/fsutil | |
parent | 578aece760dd47a06a686f82efab5b650807d4c5 (diff) | |
parent | 743327817faa1aa46ff3b31f74a0c5c2d047d65a (diff) |
Merge release-20200928.0-78-g743327817 (automated)
Diffstat (limited to 'pkg/sentry/fs/fsutil')
-rw-r--r-- | pkg/sentry/fs/fsutil/fsutil_impl_state_autogen.go | 198 | ||||
-rw-r--r-- | pkg/sentry/fs/fsutil/fsutil_state_autogen.go | 58 |
2 files changed, 128 insertions, 128 deletions
diff --git a/pkg/sentry/fs/fsutil/fsutil_impl_state_autogen.go b/pkg/sentry/fs/fsutil/fsutil_impl_state_autogen.go index 4d90bd42f..cb6b2ca81 100644 --- a/pkg/sentry/fs/fsutil/fsutil_impl_state_autogen.go +++ b/pkg/sentry/fs/fsutil/fsutil_impl_state_autogen.go @@ -6,35 +6,35 @@ import ( "gvisor.dev/gvisor/pkg/state" ) -func (d *DirtySet) StateTypeName() string { +func (s *DirtySet) StateTypeName() string { return "pkg/sentry/fs/fsutil.DirtySet" } -func (d *DirtySet) StateFields() []string { +func (s *DirtySet) StateFields() []string { return []string{ "root", } } -func (d *DirtySet) beforeSave() {} +func (s *DirtySet) beforeSave() {} -func (d *DirtySet) StateSave(stateSinkObject state.Sink) { - d.beforeSave() - var rootValue *DirtySegmentDataSlices = d.saveRoot() +func (s *DirtySet) StateSave(stateSinkObject state.Sink) { + s.beforeSave() + var rootValue *DirtySegmentDataSlices = s.saveRoot() stateSinkObject.SaveValue(0, rootValue) } -func (d *DirtySet) afterLoad() {} +func (s *DirtySet) afterLoad() {} -func (d *DirtySet) StateLoad(stateSourceObject state.Source) { - stateSourceObject.LoadValue(0, new(*DirtySegmentDataSlices), func(y interface{}) { d.loadRoot(y.(*DirtySegmentDataSlices)) }) +func (s *DirtySet) StateLoad(stateSourceObject state.Source) { + stateSourceObject.LoadValue(0, new(*DirtySegmentDataSlices), func(y interface{}) { s.loadRoot(y.(*DirtySegmentDataSlices)) }) } -func (d *Dirtynode) StateTypeName() string { +func (n *Dirtynode) StateTypeName() string { return "pkg/sentry/fs/fsutil.Dirtynode" } -func (d *Dirtynode) StateFields() []string { +func (n *Dirtynode) StateFields() []string { return []string{ "nrSegments", "parent", @@ -47,31 +47,31 @@ func (d *Dirtynode) StateFields() []string { } } -func (d *Dirtynode) beforeSave() {} +func (n *Dirtynode) beforeSave() {} -func (d *Dirtynode) StateSave(stateSinkObject state.Sink) { - d.beforeSave() - stateSinkObject.Save(0, &d.nrSegments) - stateSinkObject.Save(1, &d.parent) - stateSinkObject.Save(2, &d.parentIndex) - stateSinkObject.Save(3, &d.hasChildren) - stateSinkObject.Save(4, &d.maxGap) - stateSinkObject.Save(5, &d.keys) - stateSinkObject.Save(6, &d.values) - stateSinkObject.Save(7, &d.children) +func (n *Dirtynode) StateSave(stateSinkObject state.Sink) { + n.beforeSave() + stateSinkObject.Save(0, &n.nrSegments) + stateSinkObject.Save(1, &n.parent) + stateSinkObject.Save(2, &n.parentIndex) + stateSinkObject.Save(3, &n.hasChildren) + stateSinkObject.Save(4, &n.maxGap) + stateSinkObject.Save(5, &n.keys) + stateSinkObject.Save(6, &n.values) + stateSinkObject.Save(7, &n.children) } -func (d *Dirtynode) afterLoad() {} +func (n *Dirtynode) afterLoad() {} -func (d *Dirtynode) StateLoad(stateSourceObject state.Source) { - stateSourceObject.Load(0, &d.nrSegments) - stateSourceObject.Load(1, &d.parent) - stateSourceObject.Load(2, &d.parentIndex) - stateSourceObject.Load(3, &d.hasChildren) - stateSourceObject.Load(4, &d.maxGap) - stateSourceObject.Load(5, &d.keys) - stateSourceObject.Load(6, &d.values) - stateSourceObject.Load(7, &d.children) +func (n *Dirtynode) StateLoad(stateSourceObject state.Source) { + stateSourceObject.Load(0, &n.nrSegments) + stateSourceObject.Load(1, &n.parent) + stateSourceObject.Load(2, &n.parentIndex) + stateSourceObject.Load(3, &n.hasChildren) + stateSourceObject.Load(4, &n.maxGap) + stateSourceObject.Load(5, &n.keys) + stateSourceObject.Load(6, &n.values) + stateSourceObject.Load(7, &n.children) } func (d *DirtySegmentDataSlices) StateTypeName() string { @@ -103,35 +103,35 @@ func (d *DirtySegmentDataSlices) StateLoad(stateSourceObject state.Source) { stateSourceObject.Load(2, &d.Values) } -func (f *FileRangeSet) StateTypeName() string { +func (s *FileRangeSet) StateTypeName() string { return "pkg/sentry/fs/fsutil.FileRangeSet" } -func (f *FileRangeSet) StateFields() []string { +func (s *FileRangeSet) StateFields() []string { return []string{ "root", } } -func (f *FileRangeSet) beforeSave() {} +func (s *FileRangeSet) beforeSave() {} -func (f *FileRangeSet) StateSave(stateSinkObject state.Sink) { - f.beforeSave() - var rootValue *FileRangeSegmentDataSlices = f.saveRoot() +func (s *FileRangeSet) StateSave(stateSinkObject state.Sink) { + s.beforeSave() + var rootValue *FileRangeSegmentDataSlices = s.saveRoot() stateSinkObject.SaveValue(0, rootValue) } -func (f *FileRangeSet) afterLoad() {} +func (s *FileRangeSet) afterLoad() {} -func (f *FileRangeSet) StateLoad(stateSourceObject state.Source) { - stateSourceObject.LoadValue(0, new(*FileRangeSegmentDataSlices), func(y interface{}) { f.loadRoot(y.(*FileRangeSegmentDataSlices)) }) +func (s *FileRangeSet) StateLoad(stateSourceObject state.Source) { + stateSourceObject.LoadValue(0, new(*FileRangeSegmentDataSlices), func(y interface{}) { s.loadRoot(y.(*FileRangeSegmentDataSlices)) }) } -func (f *FileRangenode) StateTypeName() string { +func (n *FileRangenode) StateTypeName() string { return "pkg/sentry/fs/fsutil.FileRangenode" } -func (f *FileRangenode) StateFields() []string { +func (n *FileRangenode) StateFields() []string { return []string{ "nrSegments", "parent", @@ -144,31 +144,31 @@ func (f *FileRangenode) StateFields() []string { } } -func (f *FileRangenode) beforeSave() {} +func (n *FileRangenode) beforeSave() {} -func (f *FileRangenode) StateSave(stateSinkObject state.Sink) { - f.beforeSave() - stateSinkObject.Save(0, &f.nrSegments) - stateSinkObject.Save(1, &f.parent) - stateSinkObject.Save(2, &f.parentIndex) - stateSinkObject.Save(3, &f.hasChildren) - stateSinkObject.Save(4, &f.maxGap) - stateSinkObject.Save(5, &f.keys) - stateSinkObject.Save(6, &f.values) - stateSinkObject.Save(7, &f.children) +func (n *FileRangenode) StateSave(stateSinkObject state.Sink) { + n.beforeSave() + stateSinkObject.Save(0, &n.nrSegments) + stateSinkObject.Save(1, &n.parent) + stateSinkObject.Save(2, &n.parentIndex) + stateSinkObject.Save(3, &n.hasChildren) + stateSinkObject.Save(4, &n.maxGap) + stateSinkObject.Save(5, &n.keys) + stateSinkObject.Save(6, &n.values) + stateSinkObject.Save(7, &n.children) } -func (f *FileRangenode) afterLoad() {} +func (n *FileRangenode) afterLoad() {} -func (f *FileRangenode) StateLoad(stateSourceObject state.Source) { - stateSourceObject.Load(0, &f.nrSegments) - stateSourceObject.Load(1, &f.parent) - stateSourceObject.Load(2, &f.parentIndex) - stateSourceObject.Load(3, &f.hasChildren) - stateSourceObject.Load(4, &f.maxGap) - stateSourceObject.Load(5, &f.keys) - stateSourceObject.Load(6, &f.values) - stateSourceObject.Load(7, &f.children) +func (n *FileRangenode) StateLoad(stateSourceObject state.Source) { + stateSourceObject.Load(0, &n.nrSegments) + stateSourceObject.Load(1, &n.parent) + stateSourceObject.Load(2, &n.parentIndex) + stateSourceObject.Load(3, &n.hasChildren) + stateSourceObject.Load(4, &n.maxGap) + stateSourceObject.Load(5, &n.keys) + stateSourceObject.Load(6, &n.values) + stateSourceObject.Load(7, &n.children) } func (f *FileRangeSegmentDataSlices) StateTypeName() string { @@ -200,35 +200,35 @@ func (f *FileRangeSegmentDataSlices) StateLoad(stateSourceObject state.Source) { stateSourceObject.Load(2, &f.Values) } -func (f *FrameRefSet) StateTypeName() string { +func (s *FrameRefSet) StateTypeName() string { return "pkg/sentry/fs/fsutil.FrameRefSet" } -func (f *FrameRefSet) StateFields() []string { +func (s *FrameRefSet) StateFields() []string { return []string{ "root", } } -func (f *FrameRefSet) beforeSave() {} +func (s *FrameRefSet) beforeSave() {} -func (f *FrameRefSet) StateSave(stateSinkObject state.Sink) { - f.beforeSave() - var rootValue *FrameRefSegmentDataSlices = f.saveRoot() +func (s *FrameRefSet) StateSave(stateSinkObject state.Sink) { + s.beforeSave() + var rootValue *FrameRefSegmentDataSlices = s.saveRoot() stateSinkObject.SaveValue(0, rootValue) } -func (f *FrameRefSet) afterLoad() {} +func (s *FrameRefSet) afterLoad() {} -func (f *FrameRefSet) StateLoad(stateSourceObject state.Source) { - stateSourceObject.LoadValue(0, new(*FrameRefSegmentDataSlices), func(y interface{}) { f.loadRoot(y.(*FrameRefSegmentDataSlices)) }) +func (s *FrameRefSet) StateLoad(stateSourceObject state.Source) { + stateSourceObject.LoadValue(0, new(*FrameRefSegmentDataSlices), func(y interface{}) { s.loadRoot(y.(*FrameRefSegmentDataSlices)) }) } -func (f *FrameRefnode) StateTypeName() string { +func (n *FrameRefnode) StateTypeName() string { return "pkg/sentry/fs/fsutil.FrameRefnode" } -func (f *FrameRefnode) StateFields() []string { +func (n *FrameRefnode) StateFields() []string { return []string{ "nrSegments", "parent", @@ -241,31 +241,31 @@ func (f *FrameRefnode) StateFields() []string { } } -func (f *FrameRefnode) beforeSave() {} +func (n *FrameRefnode) beforeSave() {} -func (f *FrameRefnode) StateSave(stateSinkObject state.Sink) { - f.beforeSave() - stateSinkObject.Save(0, &f.nrSegments) - stateSinkObject.Save(1, &f.parent) - stateSinkObject.Save(2, &f.parentIndex) - stateSinkObject.Save(3, &f.hasChildren) - stateSinkObject.Save(4, &f.maxGap) - stateSinkObject.Save(5, &f.keys) - stateSinkObject.Save(6, &f.values) - stateSinkObject.Save(7, &f.children) -} - -func (f *FrameRefnode) afterLoad() {} - -func (f *FrameRefnode) StateLoad(stateSourceObject state.Source) { - stateSourceObject.Load(0, &f.nrSegments) - stateSourceObject.Load(1, &f.parent) - stateSourceObject.Load(2, &f.parentIndex) - stateSourceObject.Load(3, &f.hasChildren) - stateSourceObject.Load(4, &f.maxGap) - stateSourceObject.Load(5, &f.keys) - stateSourceObject.Load(6, &f.values) - stateSourceObject.Load(7, &f.children) +func (n *FrameRefnode) StateSave(stateSinkObject state.Sink) { + n.beforeSave() + stateSinkObject.Save(0, &n.nrSegments) + stateSinkObject.Save(1, &n.parent) + stateSinkObject.Save(2, &n.parentIndex) + stateSinkObject.Save(3, &n.hasChildren) + stateSinkObject.Save(4, &n.maxGap) + stateSinkObject.Save(5, &n.keys) + stateSinkObject.Save(6, &n.values) + stateSinkObject.Save(7, &n.children) +} + +func (n *FrameRefnode) afterLoad() {} + +func (n *FrameRefnode) StateLoad(stateSourceObject state.Source) { + stateSourceObject.Load(0, &n.nrSegments) + stateSourceObject.Load(1, &n.parent) + stateSourceObject.Load(2, &n.parentIndex) + stateSourceObject.Load(3, &n.hasChildren) + stateSourceObject.Load(4, &n.maxGap) + stateSourceObject.Load(5, &n.keys) + stateSourceObject.Load(6, &n.values) + stateSourceObject.Load(7, &n.children) } func (f *FrameRefSegmentDataSlices) StateTypeName() string { diff --git a/pkg/sentry/fs/fsutil/fsutil_state_autogen.go b/pkg/sentry/fs/fsutil/fsutil_state_autogen.go index 43016f689..439ab9a65 100644 --- a/pkg/sentry/fs/fsutil/fsutil_state_autogen.go +++ b/pkg/sentry/fs/fsutil/fsutil_state_autogen.go @@ -29,30 +29,30 @@ func (d *DirtyInfo) StateLoad(stateSourceObject state.Source) { stateSourceObject.Load(0, &d.Keep) } -func (s *StaticDirFileOperations) StateTypeName() string { +func (sdfo *StaticDirFileOperations) StateTypeName() string { return "pkg/sentry/fs/fsutil.StaticDirFileOperations" } -func (s *StaticDirFileOperations) StateFields() []string { +func (sdfo *StaticDirFileOperations) StateFields() []string { return []string{ "dentryMap", "dirCursor", } } -func (s *StaticDirFileOperations) beforeSave() {} +func (sdfo *StaticDirFileOperations) beforeSave() {} -func (s *StaticDirFileOperations) StateSave(stateSinkObject state.Sink) { - s.beforeSave() - stateSinkObject.Save(0, &s.dentryMap) - stateSinkObject.Save(1, &s.dirCursor) +func (sdfo *StaticDirFileOperations) StateSave(stateSinkObject state.Sink) { + sdfo.beforeSave() + stateSinkObject.Save(0, &sdfo.dentryMap) + stateSinkObject.Save(1, &sdfo.dirCursor) } -func (s *StaticDirFileOperations) afterLoad() {} +func (sdfo *StaticDirFileOperations) afterLoad() {} -func (s *StaticDirFileOperations) StateLoad(stateSourceObject state.Source) { - stateSourceObject.Load(0, &s.dentryMap) - stateSourceObject.Load(1, &s.dirCursor) +func (sdfo *StaticDirFileOperations) StateLoad(stateSourceObject state.Source) { + stateSourceObject.Load(0, &sdfo.dentryMap) + stateSourceObject.Load(1, &sdfo.dirCursor) } func (n *NoReadWriteFile) StateTypeName() string { @@ -74,49 +74,49 @@ func (n *NoReadWriteFile) afterLoad() {} func (n *NoReadWriteFile) StateLoad(stateSourceObject state.Source) { } -func (f *FileStaticContentReader) StateTypeName() string { +func (scr *FileStaticContentReader) StateTypeName() string { return "pkg/sentry/fs/fsutil.FileStaticContentReader" } -func (f *FileStaticContentReader) StateFields() []string { +func (scr *FileStaticContentReader) StateFields() []string { return []string{ "content", } } -func (f *FileStaticContentReader) beforeSave() {} +func (scr *FileStaticContentReader) beforeSave() {} -func (f *FileStaticContentReader) StateSave(stateSinkObject state.Sink) { - f.beforeSave() - stateSinkObject.Save(0, &f.content) +func (scr *FileStaticContentReader) StateSave(stateSinkObject state.Sink) { + scr.beforeSave() + stateSinkObject.Save(0, &scr.content) } -func (f *FileStaticContentReader) afterLoad() {} +func (scr *FileStaticContentReader) afterLoad() {} -func (f *FileStaticContentReader) StateLoad(stateSourceObject state.Source) { - stateSourceObject.Load(0, &f.content) +func (scr *FileStaticContentReader) StateLoad(stateSourceObject state.Source) { + stateSourceObject.Load(0, &scr.content) } -func (h *HostFileMapper) StateTypeName() string { +func (f *HostFileMapper) StateTypeName() string { return "pkg/sentry/fs/fsutil.HostFileMapper" } -func (h *HostFileMapper) StateFields() []string { +func (f *HostFileMapper) StateFields() []string { return []string{ "refs", } } -func (h *HostFileMapper) beforeSave() {} +func (f *HostFileMapper) beforeSave() {} -func (h *HostFileMapper) StateSave(stateSinkObject state.Sink) { - h.beforeSave() - stateSinkObject.Save(0, &h.refs) +func (f *HostFileMapper) StateSave(stateSinkObject state.Sink) { + f.beforeSave() + stateSinkObject.Save(0, &f.refs) } -func (h *HostFileMapper) StateLoad(stateSourceObject state.Source) { - stateSourceObject.Load(0, &h.refs) - stateSourceObject.AfterLoad(h.afterLoad) +func (f *HostFileMapper) StateLoad(stateSourceObject state.Source) { + stateSourceObject.Load(0, &f.refs) + stateSourceObject.AfterLoad(f.afterLoad) } func (h *HostMappable) StateTypeName() string { |