1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36
|
// automatically generated by stateify.
package memxattr
import (
"gvisor.dev/gvisor/pkg/state"
)
func (x *SimpleExtendedAttributes) StateTypeName() string {
return "pkg/sentry/vfs/memxattr.SimpleExtendedAttributes"
}
func (x *SimpleExtendedAttributes) StateFields() []string {
return []string{
"xattrs",
}
}
func (x *SimpleExtendedAttributes) beforeSave() {}
// +checklocksignore
func (x *SimpleExtendedAttributes) StateSave(stateSinkObject state.Sink) {
x.beforeSave()
stateSinkObject.Save(0, &x.xattrs)
}
func (x *SimpleExtendedAttributes) afterLoad() {}
// +checklocksignore
func (x *SimpleExtendedAttributes) StateLoad(stateSourceObject state.Source) {
stateSourceObject.Load(0, &x.xattrs)
}
func init() {
state.Register((*SimpleExtendedAttributes)(nil))
}
|