diff options
Diffstat (limited to 'pkg/sentry/fs/dev')
-rw-r--r-- | pkg/sentry/fs/dev/dev_state_autogen.go | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/pkg/sentry/fs/dev/dev_state_autogen.go b/pkg/sentry/fs/dev/dev_state_autogen.go index 09e71c0c8..958ddf698 100644 --- a/pkg/sentry/fs/dev/dev_state_autogen.go +++ b/pkg/sentry/fs/dev/dev_state_autogen.go @@ -155,27 +155,27 @@ func (n *nullFileOperations) afterLoad() {} func (n *nullFileOperations) StateLoad(stateSourceObject state.Source) { } -func (z *zeroDevice) StateTypeName() string { +func (zd *zeroDevice) StateTypeName() string { return "pkg/sentry/fs/dev.zeroDevice" } -func (z *zeroDevice) StateFields() []string { +func (zd *zeroDevice) StateFields() []string { return []string{ "nullDevice", } } -func (z *zeroDevice) beforeSave() {} +func (zd *zeroDevice) beforeSave() {} -func (z *zeroDevice) StateSave(stateSinkObject state.Sink) { - z.beforeSave() - stateSinkObject.Save(0, &z.nullDevice) +func (zd *zeroDevice) StateSave(stateSinkObject state.Sink) { + zd.beforeSave() + stateSinkObject.Save(0, &zd.nullDevice) } -func (z *zeroDevice) afterLoad() {} +func (zd *zeroDevice) afterLoad() {} -func (z *zeroDevice) StateLoad(stateSourceObject state.Source) { - stateSourceObject.Load(0, &z.nullDevice) +func (zd *zeroDevice) StateLoad(stateSourceObject state.Source) { + stateSourceObject.Load(0, &zd.nullDevice) } func (z *zeroFileOperations) StateTypeName() string { |