summaryrefslogtreecommitdiffhomepage
path: root/pkg/sentry/fs/fdpipe
diff options
context:
space:
mode:
authorgVisor bot <gvisor-bot@google.com>2020-10-08 01:32:17 +0000
committergVisor bot <gvisor-bot@google.com>2020-10-08 01:32:17 +0000
commit8f70c8003e9d132fc766ed7d92ce805c093d518b (patch)
tree6d77a3246e3f04605790d410e7630cb910704ced /pkg/sentry/fs/fdpipe
parent8f9d99c812b7599c52ed98f80c1a33717758a5c6 (diff)
parenta55bd73d4802112a7055de8663e947b9c0f42a2e (diff)
Merge release-20200928.0-66-ga55bd73d4 (automated)
Diffstat (limited to 'pkg/sentry/fs/fdpipe')
-rw-r--r--pkg/sentry/fs/fdpipe/fdpipe_state_autogen.go26
1 files changed, 13 insertions, 13 deletions
diff --git a/pkg/sentry/fs/fdpipe/fdpipe_state_autogen.go b/pkg/sentry/fs/fdpipe/fdpipe_state_autogen.go
index 359d52e92..f946f2ba5 100644
--- a/pkg/sentry/fs/fdpipe/fdpipe_state_autogen.go
+++ b/pkg/sentry/fs/fdpipe/fdpipe_state_autogen.go
@@ -7,11 +7,11 @@ import (
"gvisor.dev/gvisor/pkg/state"
)
-func (x *pipeOperations) StateTypeName() string {
+func (p *pipeOperations) StateTypeName() string {
return "pkg/sentry/fs/fdpipe.pipeOperations"
}
-func (x *pipeOperations) StateFields() []string {
+func (p *pipeOperations) StateFields() []string {
return []string{
"flags",
"opener",
@@ -19,19 +19,19 @@ func (x *pipeOperations) StateFields() []string {
}
}
-func (x *pipeOperations) StateSave(m state.Sink) {
- x.beforeSave()
- var flags fs.FileFlags = x.saveFlags()
- m.SaveValue(0, flags)
- m.Save(1, &x.opener)
- m.Save(2, &x.readAheadBuffer)
+func (p *pipeOperations) StateSave(stateSinkObject state.Sink) {
+ p.beforeSave()
+ var flagsValue fs.FileFlags = p.saveFlags()
+ stateSinkObject.SaveValue(0, flagsValue)
+ stateSinkObject.Save(1, &p.opener)
+ stateSinkObject.Save(2, &p.readAheadBuffer)
}
-func (x *pipeOperations) StateLoad(m state.Source) {
- m.LoadWait(1, &x.opener)
- m.Load(2, &x.readAheadBuffer)
- m.LoadValue(0, new(fs.FileFlags), func(y interface{}) { x.loadFlags(y.(fs.FileFlags)) })
- m.AfterLoad(x.afterLoad)
+func (p *pipeOperations) StateLoad(stateSourceObject state.Source) {
+ stateSourceObject.LoadWait(1, &p.opener)
+ stateSourceObject.Load(2, &p.readAheadBuffer)
+ stateSourceObject.LoadValue(0, new(fs.FileFlags), func(y interface{}) { p.loadFlags(y.(fs.FileFlags)) })
+ stateSourceObject.AfterLoad(p.afterLoad)
}
func init() {