// automatically generated by stateify. package gofer import ( "gvisor.dev/gvisor/pkg/state" ) func (x *fileOperations) beforeSave() {} func (x *fileOperations) save(m state.Map) { x.beforeSave() m.Save("inodeOperations", &x.inodeOperations) m.Save("dirCursor", &x.dirCursor) m.Save("flags", &x.flags) } func (x *fileOperations) load(m state.Map) { m.LoadWait("inodeOperations", &x.inodeOperations) m.Load("dirCursor", &x.dirCursor) m.LoadWait("flags", &x.flags) m.AfterLoad(x.afterLoad) } func (x *filesystem) beforeSave() {} func (x *filesystem) save(m state.Map) { x.beforeSave() } func (x *filesystem) afterLoad() {} func (x *filesystem) load(m state.Map) { } func (x *inodeOperations) beforeSave() {} func (x *inodeOperations) save(m state.Map) { x.beforeSave() m.Save("fileState", &x.fileState) m.Save("cachingInodeOps", &x.cachingInodeOps) } func (x *inodeOperations) afterLoad() {} func (x *inodeOperations) load(m state.Map) { m.LoadWait("fileState", &x.fileState) m.Load("cachingInodeOps", &x.cachingInodeOps) } func (x *inodeFileState) save(m state.Map) { x.beforeSave() var loading struct{} = x.saveLoading() m.SaveValue("loading", loading) m.Save("s", &x.s) m.Save("sattr", &x.sattr) m.Save("savedUAttr", &x.savedUAttr) m.Save("hostMappable", &x.hostMappable) } func (x *inodeFileState) load(m state.Map) { m.LoadWait("s", &x.s) m.LoadWait("sattr", &x.sattr) m.Load("savedUAttr", &x.savedUAttr) m.Load("hostMappable", &x.hostMappable) m.LoadValue("loading", new(struct{}), func(y interface{}) { x.loadLoading(y.(struct{})) }) m.AfterLoad(x.afterLoad) } func (x *endpointMaps) beforeSave() {} func (x *endpointMaps) save(m state.Map) { x.beforeSave() m.Save("direntMap", &x.direntMap) m.Save("pathMap", &x.pathMap) } func (x *endpointMaps) afterLoad() {} func (x *endpointMaps) load(m state.Map) { m.Load("direntMap", &x.direntMap) m.Load("pathMap", &x.pathMap) } func (x *session) save(m state.Map) { x.beforeSave() m.Save("AtomicRefCount", &x.AtomicRefCount) m.Save("msize", &x.msize) m.Save("version", &x.version) m.Save("cachePolicy", &x.cachePolicy) m.Save("aname", &x.aname) m.Save("superBlockFlags", &x.superBlockFlags) m.Save("limitHostFDTranslation", &x.limitHostFDTranslation) m.Save("connID", &x.connID) m.Save("inodeMappings", &x.inodeMappings) m.Save("mounter", &x.mounter) m.Save("endpoints", &x.endpoints) } func (x *session) load(m state.Map) { m.Load("AtomicRefCount", &x.AtomicRefCount) m.LoadWait("msize", &x.msize) m.LoadWait("version", &x.version) m.LoadWait("cachePolicy", &x.cachePolicy) m.LoadWait("aname", &x.aname) m.LoadWait("superBlockFlags", &x.superBlockFlags) m.Load("limitHostFDTranslation", &x.limitHostFDTranslation) m.LoadWait("connID", &x.connID) m.LoadWait("inodeMappings", &x.inodeMappings) m.LoadWait("mounter", &x.mounter) m.LoadWait("endpoints", &x.endpoints) m.AfterLoad(x.afterLoad) } func init() { state.Register("gofer.fileOperations", (*fileOperations)(nil), state.Fns{Save: (*fileOperations).save, Load: (*fileOperations).load}) state.Register("gofer.filesystem", (*filesystem)(nil), state.Fns{Save: (*filesystem).save, Load: (*filesystem).load}) state.Register("gofer.inodeOperations", (*inodeOperations)(nil), state.Fns{Save: (*inodeOperations).save, Load: (*inodeOperations).load}) state.Register("gofer.inodeFileState", (*inodeFileState)(nil), state.Fns{Save: (*inodeFileState).save, Load: (*inodeFileState).load}) state.Register("gofer.endpointMaps", (*endpointMaps)(nil), state.Fns{Save: (*endpointMaps).save, Load: (*endpointMaps).load}) state.Register("gofer.session", (*session)(nil), state.Fns{Save: (*session).save, Load: (*session).load}) }