summaryrefslogtreecommitdiffhomepage
path: root/pkg/sentry/vfs/vfs_state_autogen.go
diff options
context:
space:
mode:
Diffstat (limited to 'pkg/sentry/vfs/vfs_state_autogen.go')
-rw-r--r--pkg/sentry/vfs/vfs_state_autogen.go5
1 files changed, 1 insertions, 4 deletions
diff --git a/pkg/sentry/vfs/vfs_state_autogen.go b/pkg/sentry/vfs/vfs_state_autogen.go
index 2cae3bc44..006d315be 100644
--- a/pkg/sentry/vfs/vfs_state_autogen.go
+++ b/pkg/sentry/vfs/vfs_state_autogen.go
@@ -422,8 +422,6 @@ func (fd *FileDescription) StateFields() []string {
}
}
-func (fd *FileDescription) beforeSave() {}
-
func (fd *FileDescription) StateSave(stateSinkObject state.Sink) {
fd.beforeSave()
stateSinkObject.Save(0, &fd.FileDescriptionRefs)
@@ -438,8 +436,6 @@ func (fd *FileDescription) StateSave(stateSinkObject state.Sink) {
stateSinkObject.Save(9, &fd.impl)
}
-func (fd *FileDescription) afterLoad() {}
-
func (fd *FileDescription) StateLoad(stateSourceObject state.Source) {
stateSourceObject.Load(0, &fd.FileDescriptionRefs)
stateSourceObject.Load(1, &fd.statusFlags)
@@ -451,6 +447,7 @@ func (fd *FileDescription) StateLoad(stateSourceObject state.Source) {
stateSourceObject.Load(7, &fd.writable)
stateSourceObject.Load(8, &fd.usedLockBSD)
stateSourceObject.Load(9, &fd.impl)
+ stateSourceObject.AfterLoad(fd.afterLoad)
}
func (f *FileDescriptionOptions) StateTypeName() string {