diff options
Diffstat (limited to 'pkg/sentry/fsimpl')
-rw-r--r-- | pkg/sentry/fsimpl/devpts/devpts_state_autogen.go | 28 | ||||
-rw-r--r-- | pkg/sentry/fsimpl/devtmpfs/devtmpfs_state_autogen.go | 2 | ||||
-rw-r--r-- | pkg/sentry/fsimpl/eventfd/eventfd_state_autogen.go | 2 | ||||
-rw-r--r-- | pkg/sentry/fsimpl/fuse/fuse_state_autogen.go | 26 | ||||
-rw-r--r-- | pkg/sentry/fsimpl/gofer/gofer_state_autogen.go | 28 | ||||
-rw-r--r-- | pkg/sentry/fsimpl/host/host_state_autogen.go | 16 | ||||
-rw-r--r-- | pkg/sentry/fsimpl/kernfs/kernfs_state_autogen.go | 58 | ||||
-rw-r--r-- | pkg/sentry/fsimpl/overlay/overlay_state_autogen.go | 16 | ||||
-rw-r--r-- | pkg/sentry/fsimpl/pipefs/pipefs_state_autogen.go | 6 | ||||
-rw-r--r-- | pkg/sentry/fsimpl/proc/proc_state_autogen.go | 140 | ||||
-rw-r--r-- | pkg/sentry/fsimpl/signalfd/signalfd_state_autogen.go | 2 | ||||
-rw-r--r-- | pkg/sentry/fsimpl/sockfs/sockfs_state_autogen.go | 6 | ||||
-rw-r--r-- | pkg/sentry/fsimpl/sys/sys_state_autogen.go | 16 | ||||
-rw-r--r-- | pkg/sentry/fsimpl/timerfd/timerfd_state_autogen.go | 2 | ||||
-rw-r--r-- | pkg/sentry/fsimpl/tmpfs/tmpfs_state_autogen.go | 34 |
15 files changed, 382 insertions, 0 deletions
diff --git a/pkg/sentry/fsimpl/devpts/devpts_state_autogen.go b/pkg/sentry/fsimpl/devpts/devpts_state_autogen.go index 6383dd133..78e685c7e 100644 --- a/pkg/sentry/fsimpl/devpts/devpts_state_autogen.go +++ b/pkg/sentry/fsimpl/devpts/devpts_state_autogen.go @@ -20,6 +20,7 @@ func (fstype *FilesystemType) StateFields() []string { func (fstype *FilesystemType) beforeSave() {} +// +checklocksignore func (fstype *FilesystemType) StateSave(stateSinkObject state.Sink) { fstype.beforeSave() stateSinkObject.Save(0, &fstype.initErr) @@ -29,6 +30,7 @@ func (fstype *FilesystemType) StateSave(stateSinkObject state.Sink) { func (fstype *FilesystemType) afterLoad() {} +// +checklocksignore func (fstype *FilesystemType) StateLoad(stateSourceObject state.Source) { stateSourceObject.Load(0, &fstype.initErr) stateSourceObject.Load(1, &fstype.fs) @@ -48,6 +50,7 @@ func (fs *filesystem) StateFields() []string { func (fs *filesystem) beforeSave() {} +// +checklocksignore func (fs *filesystem) StateSave(stateSinkObject state.Sink) { fs.beforeSave() stateSinkObject.Save(0, &fs.Filesystem) @@ -56,6 +59,7 @@ func (fs *filesystem) StateSave(stateSinkObject state.Sink) { func (fs *filesystem) afterLoad() {} +// +checklocksignore func (fs *filesystem) StateLoad(stateSourceObject state.Source) { stateSourceObject.Load(0, &fs.Filesystem) stateSourceObject.Load(1, &fs.devMinor) @@ -84,6 +88,7 @@ func (i *rootInode) StateFields() []string { func (i *rootInode) beforeSave() {} +// +checklocksignore func (i *rootInode) StateSave(stateSinkObject state.Sink) { i.beforeSave() stateSinkObject.Save(0, &i.implStatFS) @@ -102,6 +107,7 @@ func (i *rootInode) StateSave(stateSinkObject state.Sink) { func (i *rootInode) afterLoad() {} +// +checklocksignore func (i *rootInode) StateLoad(stateSourceObject state.Source) { stateSourceObject.Load(0, &i.implStatFS) stateSourceObject.Load(1, &i.InodeAlwaysValid) @@ -127,12 +133,14 @@ func (i *implStatFS) StateFields() []string { func (i *implStatFS) beforeSave() {} +// +checklocksignore func (i *implStatFS) StateSave(stateSinkObject state.Sink) { i.beforeSave() } func (i *implStatFS) afterLoad() {} +// +checklocksignore func (i *implStatFS) StateLoad(stateSourceObject state.Source) { } @@ -154,6 +162,7 @@ func (l *lineDiscipline) StateFields() []string { func (l *lineDiscipline) beforeSave() {} +// +checklocksignore func (l *lineDiscipline) StateSave(stateSinkObject state.Sink) { l.beforeSave() stateSinkObject.Save(0, &l.size) @@ -167,6 +176,7 @@ func (l *lineDiscipline) StateSave(stateSinkObject state.Sink) { func (l *lineDiscipline) afterLoad() {} +// +checklocksignore func (l *lineDiscipline) StateLoad(stateSourceObject state.Source) { stateSourceObject.Load(0, &l.size) stateSourceObject.Load(1, &l.inQueue) @@ -187,12 +197,14 @@ func (o *outputQueueTransformer) StateFields() []string { func (o *outputQueueTransformer) beforeSave() {} +// +checklocksignore func (o *outputQueueTransformer) StateSave(stateSinkObject state.Sink) { o.beforeSave() } func (o *outputQueueTransformer) afterLoad() {} +// +checklocksignore func (o *outputQueueTransformer) StateLoad(stateSourceObject state.Source) { } @@ -206,12 +218,14 @@ func (i *inputQueueTransformer) StateFields() []string { func (i *inputQueueTransformer) beforeSave() {} +// +checklocksignore func (i *inputQueueTransformer) StateSave(stateSinkObject state.Sink) { i.beforeSave() } func (i *inputQueueTransformer) afterLoad() {} +// +checklocksignore func (i *inputQueueTransformer) StateLoad(stateSourceObject state.Source) { } @@ -233,6 +247,7 @@ func (mi *masterInode) StateFields() []string { func (mi *masterInode) beforeSave() {} +// +checklocksignore func (mi *masterInode) StateSave(stateSinkObject state.Sink) { mi.beforeSave() stateSinkObject.Save(0, &mi.implStatFS) @@ -246,6 +261,7 @@ func (mi *masterInode) StateSave(stateSinkObject state.Sink) { func (mi *masterInode) afterLoad() {} +// +checklocksignore func (mi *masterInode) StateLoad(stateSourceObject state.Source) { stateSourceObject.Load(0, &mi.implStatFS) stateSourceObject.Load(1, &mi.InodeAttrs) @@ -272,6 +288,7 @@ func (mfd *masterFileDescription) StateFields() []string { func (mfd *masterFileDescription) beforeSave() {} +// +checklocksignore func (mfd *masterFileDescription) StateSave(stateSinkObject state.Sink) { mfd.beforeSave() stateSinkObject.Save(0, &mfd.vfsfd) @@ -283,6 +300,7 @@ func (mfd *masterFileDescription) StateSave(stateSinkObject state.Sink) { func (mfd *masterFileDescription) afterLoad() {} +// +checklocksignore func (mfd *masterFileDescription) StateLoad(stateSourceObject state.Source) { stateSourceObject.Load(0, &mfd.vfsfd) stateSourceObject.Load(1, &mfd.FileDescriptionDefaultImpl) @@ -307,6 +325,7 @@ func (q *queue) StateFields() []string { func (q *queue) beforeSave() {} +// +checklocksignore func (q *queue) StateSave(stateSinkObject state.Sink) { q.beforeSave() stateSinkObject.Save(0, &q.readBuf) @@ -318,6 +337,7 @@ func (q *queue) StateSave(stateSinkObject state.Sink) { func (q *queue) afterLoad() {} +// +checklocksignore func (q *queue) StateLoad(stateSourceObject state.Source) { stateSourceObject.Load(0, &q.readBuf) stateSourceObject.Load(1, &q.waitBuf) @@ -345,6 +365,7 @@ func (ri *replicaInode) StateFields() []string { func (ri *replicaInode) beforeSave() {} +// +checklocksignore func (ri *replicaInode) StateSave(stateSinkObject state.Sink) { ri.beforeSave() stateSinkObject.Save(0, &ri.implStatFS) @@ -359,6 +380,7 @@ func (ri *replicaInode) StateSave(stateSinkObject state.Sink) { func (ri *replicaInode) afterLoad() {} +// +checklocksignore func (ri *replicaInode) StateLoad(stateSourceObject state.Source) { stateSourceObject.Load(0, &ri.implStatFS) stateSourceObject.Load(1, &ri.InodeAttrs) @@ -385,6 +407,7 @@ func (rfd *replicaFileDescription) StateFields() []string { func (rfd *replicaFileDescription) beforeSave() {} +// +checklocksignore func (rfd *replicaFileDescription) StateSave(stateSinkObject state.Sink) { rfd.beforeSave() stateSinkObject.Save(0, &rfd.vfsfd) @@ -395,6 +418,7 @@ func (rfd *replicaFileDescription) StateSave(stateSinkObject state.Sink) { func (rfd *replicaFileDescription) afterLoad() {} +// +checklocksignore func (rfd *replicaFileDescription) StateLoad(stateSourceObject state.Source) { stateSourceObject.Load(0, &rfd.vfsfd) stateSourceObject.Load(1, &rfd.FileDescriptionDefaultImpl) @@ -414,11 +438,13 @@ func (r *rootInodeRefs) StateFields() []string { func (r *rootInodeRefs) beforeSave() {} +// +checklocksignore func (r *rootInodeRefs) StateSave(stateSinkObject state.Sink) { r.beforeSave() stateSinkObject.Save(0, &r.refCount) } +// +checklocksignore func (r *rootInodeRefs) StateLoad(stateSourceObject state.Source) { stateSourceObject.Load(0, &r.refCount) stateSourceObject.AfterLoad(r.afterLoad) @@ -439,6 +465,7 @@ func (tm *Terminal) StateFields() []string { func (tm *Terminal) beforeSave() {} +// +checklocksignore func (tm *Terminal) StateSave(stateSinkObject state.Sink) { tm.beforeSave() stateSinkObject.Save(0, &tm.n) @@ -449,6 +476,7 @@ func (tm *Terminal) StateSave(stateSinkObject state.Sink) { func (tm *Terminal) afterLoad() {} +// +checklocksignore func (tm *Terminal) StateLoad(stateSourceObject state.Source) { stateSourceObject.Load(0, &tm.n) stateSourceObject.Load(1, &tm.ld) diff --git a/pkg/sentry/fsimpl/devtmpfs/devtmpfs_state_autogen.go b/pkg/sentry/fsimpl/devtmpfs/devtmpfs_state_autogen.go index 87f77d00c..900c7d8fe 100644 --- a/pkg/sentry/fsimpl/devtmpfs/devtmpfs_state_autogen.go +++ b/pkg/sentry/fsimpl/devtmpfs/devtmpfs_state_autogen.go @@ -20,6 +20,7 @@ func (fst *FilesystemType) StateFields() []string { func (fst *FilesystemType) beforeSave() {} +// +checklocksignore func (fst *FilesystemType) StateSave(stateSinkObject state.Sink) { fst.beforeSave() stateSinkObject.Save(0, &fst.initErr) @@ -27,6 +28,7 @@ func (fst *FilesystemType) StateSave(stateSinkObject state.Sink) { stateSinkObject.Save(2, &fst.root) } +// +checklocksignore func (fst *FilesystemType) StateLoad(stateSourceObject state.Source) { stateSourceObject.Load(0, &fst.initErr) stateSourceObject.Load(1, &fst.fs) diff --git a/pkg/sentry/fsimpl/eventfd/eventfd_state_autogen.go b/pkg/sentry/fsimpl/eventfd/eventfd_state_autogen.go index 3af030742..93de7f32e 100644 --- a/pkg/sentry/fsimpl/eventfd/eventfd_state_autogen.go +++ b/pkg/sentry/fsimpl/eventfd/eventfd_state_autogen.go @@ -25,6 +25,7 @@ func (efd *EventFileDescription) StateFields() []string { func (efd *EventFileDescription) beforeSave() {} +// +checklocksignore func (efd *EventFileDescription) StateSave(stateSinkObject state.Sink) { efd.beforeSave() stateSinkObject.Save(0, &efd.vfsfd) @@ -39,6 +40,7 @@ func (efd *EventFileDescription) StateSave(stateSinkObject state.Sink) { func (efd *EventFileDescription) afterLoad() {} +// +checklocksignore func (efd *EventFileDescription) StateLoad(stateSourceObject state.Source) { stateSourceObject.Load(0, &efd.vfsfd) stateSourceObject.Load(1, &efd.FileDescriptionDefaultImpl) diff --git a/pkg/sentry/fsimpl/fuse/fuse_state_autogen.go b/pkg/sentry/fsimpl/fuse/fuse_state_autogen.go index 06600959e..f61e010dc 100644 --- a/pkg/sentry/fsimpl/fuse/fuse_state_autogen.go +++ b/pkg/sentry/fsimpl/fuse/fuse_state_autogen.go @@ -39,6 +39,7 @@ func (conn *connection) StateFields() []string { func (conn *connection) beforeSave() {} +// +checklocksignore func (conn *connection) StateSave(stateSinkObject state.Sink) { conn.beforeSave() var initializedChanValue bool = conn.saveInitializedChan() @@ -68,6 +69,7 @@ func (conn *connection) StateSave(stateSinkObject state.Sink) { func (conn *connection) afterLoad() {} +// +checklocksignore func (conn *connection) StateLoad(stateSourceObject state.Source) { stateSourceObject.Load(0, &conn.fd) stateSourceObject.Load(1, &conn.attributeVersion) @@ -103,12 +105,14 @@ func (f *fuseDevice) StateFields() []string { func (f *fuseDevice) beforeSave() {} +// +checklocksignore func (f *fuseDevice) StateSave(stateSinkObject state.Sink) { f.beforeSave() } func (f *fuseDevice) afterLoad() {} +// +checklocksignore func (f *fuseDevice) StateLoad(stateSourceObject state.Source) { } @@ -137,6 +141,7 @@ func (fd *DeviceFD) StateFields() []string { func (fd *DeviceFD) beforeSave() {} +// +checklocksignore func (fd *DeviceFD) StateSave(stateSinkObject state.Sink) { fd.beforeSave() var fullQueueChValue int = fd.saveFullQueueCh() @@ -158,6 +163,7 @@ func (fd *DeviceFD) StateSave(stateSinkObject state.Sink) { func (fd *DeviceFD) afterLoad() {} +// +checklocksignore func (fd *DeviceFD) StateLoad(stateSourceObject state.Source) { stateSourceObject.Load(0, &fd.vfsfd) stateSourceObject.Load(1, &fd.FileDescriptionDefaultImpl) @@ -185,12 +191,14 @@ func (fsType *FilesystemType) StateFields() []string { func (fsType *FilesystemType) beforeSave() {} +// +checklocksignore func (fsType *FilesystemType) StateSave(stateSinkObject state.Sink) { fsType.beforeSave() } func (fsType *FilesystemType) afterLoad() {} +// +checklocksignore func (fsType *FilesystemType) StateLoad(stateSourceObject state.Source) { } @@ -213,6 +221,7 @@ func (f *filesystemOptions) StateFields() []string { func (f *filesystemOptions) beforeSave() {} +// +checklocksignore func (f *filesystemOptions) StateSave(stateSinkObject state.Sink) { f.beforeSave() stateSinkObject.Save(0, &f.mopts) @@ -227,6 +236,7 @@ func (f *filesystemOptions) StateSave(stateSinkObject state.Sink) { func (f *filesystemOptions) afterLoad() {} +// +checklocksignore func (f *filesystemOptions) StateLoad(stateSourceObject state.Source) { stateSourceObject.Load(0, &f.mopts) stateSourceObject.Load(1, &f.uid) @@ -254,6 +264,7 @@ func (fs *filesystem) StateFields() []string { func (fs *filesystem) beforeSave() {} +// +checklocksignore func (fs *filesystem) StateSave(stateSinkObject state.Sink) { fs.beforeSave() stateSinkObject.Save(0, &fs.Filesystem) @@ -265,6 +276,7 @@ func (fs *filesystem) StateSave(stateSinkObject state.Sink) { func (fs *filesystem) afterLoad() {} +// +checklocksignore func (fs *filesystem) StateLoad(stateSourceObject state.Source) { stateSourceObject.Load(0, &fs.Filesystem) stateSourceObject.Load(1, &fs.devMinor) @@ -299,6 +311,7 @@ func (i *inode) StateFields() []string { func (i *inode) beforeSave() {} +// +checklocksignore func (i *inode) StateSave(stateSinkObject state.Sink) { i.beforeSave() stateSinkObject.Save(0, &i.inodeRefs) @@ -320,6 +333,7 @@ func (i *inode) StateSave(stateSinkObject state.Sink) { func (i *inode) afterLoad() {} +// +checklocksignore func (i *inode) StateLoad(stateSourceObject state.Source) { stateSourceObject.Load(0, &i.inodeRefs) stateSourceObject.Load(1, &i.InodeAlwaysValid) @@ -350,11 +364,13 @@ func (r *inodeRefs) StateFields() []string { func (r *inodeRefs) beforeSave() {} +// +checklocksignore func (r *inodeRefs) StateSave(stateSinkObject state.Sink) { r.beforeSave() stateSinkObject.Save(0, &r.refCount) } +// +checklocksignore func (r *inodeRefs) StateLoad(stateSourceObject state.Source) { stateSourceObject.Load(0, &r.refCount) stateSourceObject.AfterLoad(r.afterLoad) @@ -373,6 +389,7 @@ func (l *requestList) StateFields() []string { func (l *requestList) beforeSave() {} +// +checklocksignore func (l *requestList) StateSave(stateSinkObject state.Sink) { l.beforeSave() stateSinkObject.Save(0, &l.head) @@ -381,6 +398,7 @@ func (l *requestList) StateSave(stateSinkObject state.Sink) { func (l *requestList) afterLoad() {} +// +checklocksignore func (l *requestList) StateLoad(stateSourceObject state.Source) { stateSourceObject.Load(0, &l.head) stateSourceObject.Load(1, &l.tail) @@ -399,6 +417,7 @@ func (e *requestEntry) StateFields() []string { func (e *requestEntry) beforeSave() {} +// +checklocksignore func (e *requestEntry) StateSave(stateSinkObject state.Sink) { e.beforeSave() stateSinkObject.Save(0, &e.next) @@ -407,6 +426,7 @@ func (e *requestEntry) StateSave(stateSinkObject state.Sink) { func (e *requestEntry) afterLoad() {} +// +checklocksignore func (e *requestEntry) StateLoad(stateSourceObject state.Source) { stateSourceObject.Load(0, &e.next) stateSourceObject.Load(1, &e.prev) @@ -430,6 +450,7 @@ func (r *Request) StateFields() []string { func (r *Request) beforeSave() {} +// +checklocksignore func (r *Request) StateSave(stateSinkObject state.Sink) { r.beforeSave() stateSinkObject.Save(0, &r.requestEntry) @@ -443,6 +464,7 @@ func (r *Request) StateSave(stateSinkObject state.Sink) { func (r *Request) afterLoad() {} +// +checklocksignore func (r *Request) StateLoad(stateSourceObject state.Source) { stateSourceObject.Load(0, &r.requestEntry) stateSourceObject.Load(1, &r.id) @@ -469,6 +491,7 @@ func (f *futureResponse) StateFields() []string { func (f *futureResponse) beforeSave() {} +// +checklocksignore func (f *futureResponse) StateSave(stateSinkObject state.Sink) { f.beforeSave() stateSinkObject.Save(0, &f.opcode) @@ -480,6 +503,7 @@ func (f *futureResponse) StateSave(stateSinkObject state.Sink) { func (f *futureResponse) afterLoad() {} +// +checklocksignore func (f *futureResponse) StateLoad(stateSourceObject state.Source) { stateSourceObject.Load(0, &f.opcode) stateSourceObject.Load(1, &f.ch) @@ -502,6 +526,7 @@ func (r *Response) StateFields() []string { func (r *Response) beforeSave() {} +// +checklocksignore func (r *Response) StateSave(stateSinkObject state.Sink) { r.beforeSave() stateSinkObject.Save(0, &r.opcode) @@ -511,6 +536,7 @@ func (r *Response) StateSave(stateSinkObject state.Sink) { func (r *Response) afterLoad() {} +// +checklocksignore func (r *Response) StateLoad(stateSourceObject state.Source) { stateSourceObject.Load(0, &r.opcode) stateSourceObject.Load(1, &r.hdr) diff --git a/pkg/sentry/fsimpl/gofer/gofer_state_autogen.go b/pkg/sentry/fsimpl/gofer/gofer_state_autogen.go index 26d0ab4db..11635f249 100644 --- a/pkg/sentry/fsimpl/gofer/gofer_state_autogen.go +++ b/pkg/sentry/fsimpl/gofer/gofer_state_autogen.go @@ -19,6 +19,7 @@ func (l *dentryList) StateFields() []string { func (l *dentryList) beforeSave() {} +// +checklocksignore func (l *dentryList) StateSave(stateSinkObject state.Sink) { l.beforeSave() stateSinkObject.Save(0, &l.head) @@ -27,6 +28,7 @@ func (l *dentryList) StateSave(stateSinkObject state.Sink) { func (l *dentryList) afterLoad() {} +// +checklocksignore func (l *dentryList) StateLoad(stateSourceObject state.Source) { stateSourceObject.Load(0, &l.head) stateSourceObject.Load(1, &l.tail) @@ -45,6 +47,7 @@ func (e *dentryEntry) StateFields() []string { func (e *dentryEntry) beforeSave() {} +// +checklocksignore func (e *dentryEntry) StateSave(stateSinkObject state.Sink) { e.beforeSave() stateSinkObject.Save(0, &e.next) @@ -53,6 +56,7 @@ func (e *dentryEntry) StateSave(stateSinkObject state.Sink) { func (e *dentryEntry) afterLoad() {} +// +checklocksignore func (e *dentryEntry) StateLoad(stateSourceObject state.Source) { stateSourceObject.Load(0, &e.next) stateSourceObject.Load(1, &e.prev) @@ -73,6 +77,7 @@ func (fd *directoryFD) StateFields() []string { func (fd *directoryFD) beforeSave() {} +// +checklocksignore func (fd *directoryFD) StateSave(stateSinkObject state.Sink) { fd.beforeSave() stateSinkObject.Save(0, &fd.fileDescription) @@ -83,6 +88,7 @@ func (fd *directoryFD) StateSave(stateSinkObject state.Sink) { func (fd *directoryFD) afterLoad() {} +// +checklocksignore func (fd *directoryFD) StateLoad(stateSourceObject state.Source) { stateSourceObject.Load(0, &fd.fileDescription) stateSourceObject.Load(1, &fd.DirectoryFileDescriptionDefaultImpl) @@ -100,12 +106,14 @@ func (fstype *FilesystemType) StateFields() []string { func (fstype *FilesystemType) beforeSave() {} +// +checklocksignore func (fstype *FilesystemType) StateSave(stateSinkObject state.Sink) { fstype.beforeSave() } func (fstype *FilesystemType) afterLoad() {} +// +checklocksignore func (fstype *FilesystemType) StateLoad(stateSourceObject state.Source) { } @@ -134,6 +142,7 @@ func (fs *filesystem) StateFields() []string { func (fs *filesystem) beforeSave() {} +// +checklocksignore func (fs *filesystem) StateSave(stateSinkObject state.Sink) { fs.beforeSave() stateSinkObject.Save(0, &fs.vfsfs) @@ -154,6 +163,7 @@ func (fs *filesystem) StateSave(stateSinkObject state.Sink) { func (fs *filesystem) afterLoad() {} +// +checklocksignore func (fs *filesystem) StateLoad(stateSourceObject state.Source) { stateSourceObject.Load(0, &fs.vfsfs) stateSourceObject.Load(1, &fs.mfp) @@ -194,6 +204,7 @@ func (f *filesystemOptions) StateFields() []string { func (f *filesystemOptions) beforeSave() {} +// +checklocksignore func (f *filesystemOptions) StateSave(stateSinkObject state.Sink) { f.beforeSave() stateSinkObject.Save(0, &f.fd) @@ -212,6 +223,7 @@ func (f *filesystemOptions) StateSave(stateSinkObject state.Sink) { func (f *filesystemOptions) afterLoad() {} +// +checklocksignore func (f *filesystemOptions) StateLoad(stateSourceObject state.Source) { stateSourceObject.Load(0, &f.fd) stateSourceObject.Load(1, &f.aname) @@ -249,6 +261,7 @@ func (i *InternalFilesystemOptions) StateFields() []string { func (i *InternalFilesystemOptions) beforeSave() {} +// +checklocksignore func (i *InternalFilesystemOptions) StateSave(stateSinkObject state.Sink) { i.beforeSave() stateSinkObject.Save(0, &i.UniqueID) @@ -258,6 +271,7 @@ func (i *InternalFilesystemOptions) StateSave(stateSinkObject state.Sink) { func (i *InternalFilesystemOptions) afterLoad() {} +// +checklocksignore func (i *InternalFilesystemOptions) StateLoad(stateSourceObject state.Source) { stateSourceObject.Load(0, &i.UniqueID) stateSourceObject.Load(1, &i.LeakConnection) @@ -308,6 +322,7 @@ func (d *dentry) StateFields() []string { } } +// +checklocksignore func (d *dentry) StateSave(stateSinkObject state.Sink) { d.beforeSave() stateSinkObject.Save(0, &d.vfsd) @@ -347,6 +362,7 @@ func (d *dentry) StateSave(stateSinkObject state.Sink) { stateSinkObject.Save(34, &d.watches) } +// +checklocksignore func (d *dentry) StateLoad(stateSourceObject state.Source) { stateSourceObject.Load(0, &d.vfsd) stateSourceObject.Load(1, &d.refs) @@ -400,6 +416,7 @@ func (fd *fileDescription) StateFields() []string { func (fd *fileDescription) beforeSave() {} +// +checklocksignore func (fd *fileDescription) StateSave(stateSinkObject state.Sink) { fd.beforeSave() stateSinkObject.Save(0, &fd.vfsfd) @@ -409,6 +426,7 @@ func (fd *fileDescription) StateSave(stateSinkObject state.Sink) { func (fd *fileDescription) afterLoad() {} +// +checklocksignore func (fd *fileDescription) StateLoad(stateSourceObject state.Source) { stateSourceObject.Load(0, &fd.vfsfd) stateSourceObject.Load(1, &fd.FileDescriptionDefaultImpl) @@ -428,6 +446,7 @@ func (fd *regularFileFD) StateFields() []string { func (fd *regularFileFD) beforeSave() {} +// +checklocksignore func (fd *regularFileFD) StateSave(stateSinkObject state.Sink) { fd.beforeSave() stateSinkObject.Save(0, &fd.fileDescription) @@ -436,6 +455,7 @@ func (fd *regularFileFD) StateSave(stateSinkObject state.Sink) { func (fd *regularFileFD) afterLoad() {} +// +checklocksignore func (fd *regularFileFD) StateLoad(stateSourceObject state.Source) { stateSourceObject.Load(0, &fd.fileDescription) stateSourceObject.Load(1, &fd.off) @@ -455,6 +475,7 @@ func (d *dentryPlatformFile) StateFields() []string { func (d *dentryPlatformFile) beforeSave() {} +// +checklocksignore func (d *dentryPlatformFile) StateSave(stateSinkObject state.Sink) { d.beforeSave() stateSinkObject.Save(0, &d.dentry) @@ -462,6 +483,7 @@ func (d *dentryPlatformFile) StateSave(stateSinkObject state.Sink) { stateSinkObject.Save(2, &d.hostFileMapper) } +// +checklocksignore func (d *dentryPlatformFile) StateLoad(stateSourceObject state.Source) { stateSourceObject.Load(0, &d.dentry) stateSourceObject.Load(1, &d.fdRefs) @@ -482,6 +504,7 @@ func (s *savedDentryRW) StateFields() []string { func (s *savedDentryRW) beforeSave() {} +// +checklocksignore func (s *savedDentryRW) StateSave(stateSinkObject state.Sink) { s.beforeSave() stateSinkObject.Save(0, &s.read) @@ -490,6 +513,7 @@ func (s *savedDentryRW) StateSave(stateSinkObject state.Sink) { func (s *savedDentryRW) afterLoad() {} +// +checklocksignore func (s *savedDentryRW) StateLoad(stateSourceObject state.Source) { stateSourceObject.Load(0, &s.read) stateSourceObject.Load(1, &s.write) @@ -508,6 +532,7 @@ func (e *endpoint) StateFields() []string { func (e *endpoint) beforeSave() {} +// +checklocksignore func (e *endpoint) StateSave(stateSinkObject state.Sink) { e.beforeSave() stateSinkObject.Save(0, &e.dentry) @@ -516,6 +541,7 @@ func (e *endpoint) StateSave(stateSinkObject state.Sink) { func (e *endpoint) afterLoad() {} +// +checklocksignore func (e *endpoint) StateLoad(stateSourceObject state.Source) { stateSourceObject.Load(0, &e.dentry) stateSourceObject.Load(1, &e.path) @@ -539,6 +565,7 @@ func (fd *specialFileFD) StateFields() []string { func (fd *specialFileFD) beforeSave() {} +// +checklocksignore func (fd *specialFileFD) StateSave(stateSinkObject state.Sink) { fd.beforeSave() stateSinkObject.Save(0, &fd.fileDescription) @@ -550,6 +577,7 @@ func (fd *specialFileFD) StateSave(stateSinkObject state.Sink) { stateSinkObject.Save(6, &fd.buf) } +// +checklocksignore func (fd *specialFileFD) StateLoad(stateSourceObject state.Source) { stateSourceObject.Load(0, &fd.fileDescription) stateSourceObject.Load(1, &fd.isRegularFile) diff --git a/pkg/sentry/fsimpl/host/host_state_autogen.go b/pkg/sentry/fsimpl/host/host_state_autogen.go index 705f8010a..6f73cc7e3 100644 --- a/pkg/sentry/fsimpl/host/host_state_autogen.go +++ b/pkg/sentry/fsimpl/host/host_state_autogen.go @@ -18,11 +18,13 @@ func (r *ConnectedEndpointRefs) StateFields() []string { func (r *ConnectedEndpointRefs) beforeSave() {} +// +checklocksignore func (r *ConnectedEndpointRefs) StateSave(stateSinkObject state.Sink) { r.beforeSave() stateSinkObject.Save(0, &r.refCount) } +// +checklocksignore func (r *ConnectedEndpointRefs) StateLoad(stateSourceObject state.Source) { stateSourceObject.Load(0, &r.refCount) stateSourceObject.AfterLoad(r.afterLoad) @@ -54,6 +56,7 @@ func (i *inode) StateFields() []string { } } +// +checklocksignore func (i *inode) StateSave(stateSinkObject state.Sink) { i.beforeSave() stateSinkObject.Save(0, &i.InodeNoStatFS) @@ -75,6 +78,7 @@ func (i *inode) StateSave(stateSinkObject state.Sink) { stateSinkObject.Save(16, &i.buf) } +// +checklocksignore func (i *inode) StateLoad(stateSourceObject state.Source) { stateSourceObject.Load(0, &i.InodeNoStatFS) stateSourceObject.Load(1, &i.InodeNotDirectory) @@ -106,12 +110,14 @@ func (f *filesystemType) StateFields() []string { func (f *filesystemType) beforeSave() {} +// +checklocksignore func (f *filesystemType) StateSave(stateSinkObject state.Sink) { f.beforeSave() } func (f *filesystemType) afterLoad() {} +// +checklocksignore func (f *filesystemType) StateLoad(stateSourceObject state.Source) { } @@ -128,6 +134,7 @@ func (fs *filesystem) StateFields() []string { func (fs *filesystem) beforeSave() {} +// +checklocksignore func (fs *filesystem) StateSave(stateSinkObject state.Sink) { fs.beforeSave() stateSinkObject.Save(0, &fs.Filesystem) @@ -136,6 +143,7 @@ func (fs *filesystem) StateSave(stateSinkObject state.Sink) { func (fs *filesystem) afterLoad() {} +// +checklocksignore func (fs *filesystem) StateLoad(stateSourceObject state.Source) { stateSourceObject.Load(0, &fs.Filesystem) stateSourceObject.Load(1, &fs.devMinor) @@ -157,6 +165,7 @@ func (f *fileDescription) StateFields() []string { func (f *fileDescription) beforeSave() {} +// +checklocksignore func (f *fileDescription) StateSave(stateSinkObject state.Sink) { f.beforeSave() stateSinkObject.Save(0, &f.vfsfd) @@ -168,6 +177,7 @@ func (f *fileDescription) StateSave(stateSinkObject state.Sink) { func (f *fileDescription) afterLoad() {} +// +checklocksignore func (f *fileDescription) StateLoad(stateSourceObject state.Source) { stateSourceObject.Load(0, &f.vfsfd) stateSourceObject.Load(1, &f.FileDescriptionDefaultImpl) @@ -188,11 +198,13 @@ func (r *inodeRefs) StateFields() []string { func (r *inodeRefs) beforeSave() {} +// +checklocksignore func (r *inodeRefs) StateSave(stateSinkObject state.Sink) { r.beforeSave() stateSinkObject.Save(0, &r.refCount) } +// +checklocksignore func (r *inodeRefs) StateLoad(stateSourceObject state.Source) { stateSourceObject.Load(0, &r.refCount) stateSourceObject.AfterLoad(r.afterLoad) @@ -213,6 +225,7 @@ func (c *ConnectedEndpoint) StateFields() []string { func (c *ConnectedEndpoint) beforeSave() {} +// +checklocksignore func (c *ConnectedEndpoint) StateSave(stateSinkObject state.Sink) { c.beforeSave() stateSinkObject.Save(0, &c.ConnectedEndpointRefs) @@ -223,6 +236,7 @@ func (c *ConnectedEndpoint) StateSave(stateSinkObject state.Sink) { func (c *ConnectedEndpoint) afterLoad() {} +// +checklocksignore func (c *ConnectedEndpoint) StateLoad(stateSourceObject state.Source) { stateSourceObject.Load(0, &c.ConnectedEndpointRefs) stateSourceObject.Load(1, &c.fd) @@ -245,6 +259,7 @@ func (t *TTYFileDescription) StateFields() []string { func (t *TTYFileDescription) beforeSave() {} +// +checklocksignore func (t *TTYFileDescription) StateSave(stateSinkObject state.Sink) { t.beforeSave() stateSinkObject.Save(0, &t.fileDescription) @@ -255,6 +270,7 @@ func (t *TTYFileDescription) StateSave(stateSinkObject state.Sink) { func (t *TTYFileDescription) afterLoad() {} +// +checklocksignore func (t *TTYFileDescription) StateLoad(stateSourceObject state.Source) { stateSourceObject.Load(0, &t.fileDescription) stateSourceObject.Load(1, &t.session) diff --git a/pkg/sentry/fsimpl/kernfs/kernfs_state_autogen.go b/pkg/sentry/fsimpl/kernfs/kernfs_state_autogen.go index 7ac76bd5b..5b8d033ec 100644 --- a/pkg/sentry/fsimpl/kernfs/kernfs_state_autogen.go +++ b/pkg/sentry/fsimpl/kernfs/kernfs_state_autogen.go @@ -19,6 +19,7 @@ func (l *dentryList) StateFields() []string { func (l *dentryList) beforeSave() {} +// +checklocksignore func (l *dentryList) StateSave(stateSinkObject state.Sink) { l.beforeSave() stateSinkObject.Save(0, &l.head) @@ -27,6 +28,7 @@ func (l *dentryList) StateSave(stateSinkObject state.Sink) { func (l *dentryList) afterLoad() {} +// +checklocksignore func (l *dentryList) StateLoad(stateSourceObject state.Source) { stateSourceObject.Load(0, &l.head) stateSourceObject.Load(1, &l.tail) @@ -45,6 +47,7 @@ func (e *dentryEntry) StateFields() []string { func (e *dentryEntry) beforeSave() {} +// +checklocksignore func (e *dentryEntry) StateSave(stateSinkObject state.Sink) { e.beforeSave() stateSinkObject.Save(0, &e.next) @@ -53,6 +56,7 @@ func (e *dentryEntry) StateSave(stateSinkObject state.Sink) { func (e *dentryEntry) afterLoad() {} +// +checklocksignore func (e *dentryEntry) StateLoad(stateSourceObject state.Source) { stateSourceObject.Load(0, &e.next) stateSourceObject.Load(1, &e.prev) @@ -76,6 +80,7 @@ func (f *DynamicBytesFile) StateFields() []string { func (f *DynamicBytesFile) beforeSave() {} +// +checklocksignore func (f *DynamicBytesFile) StateSave(stateSinkObject state.Sink) { f.beforeSave() stateSinkObject.Save(0, &f.InodeAttrs) @@ -89,6 +94,7 @@ func (f *DynamicBytesFile) StateSave(stateSinkObject state.Sink) { func (f *DynamicBytesFile) afterLoad() {} +// +checklocksignore func (f *DynamicBytesFile) StateLoad(stateSourceObject state.Source) { stateSourceObject.Load(0, &f.InodeAttrs) stateSourceObject.Load(1, &f.InodeNoStatFS) @@ -115,6 +121,7 @@ func (fd *DynamicBytesFD) StateFields() []string { func (fd *DynamicBytesFD) beforeSave() {} +// +checklocksignore func (fd *DynamicBytesFD) StateSave(stateSinkObject state.Sink) { fd.beforeSave() stateSinkObject.Save(0, &fd.FileDescriptionDefaultImpl) @@ -126,6 +133,7 @@ func (fd *DynamicBytesFD) StateSave(stateSinkObject state.Sink) { func (fd *DynamicBytesFD) afterLoad() {} +// +checklocksignore func (fd *DynamicBytesFD) StateLoad(stateSourceObject state.Source) { stateSourceObject.Load(0, &fd.FileDescriptionDefaultImpl) stateSourceObject.Load(1, &fd.DynamicBytesFileDescriptionImpl) @@ -154,6 +162,7 @@ func (g *GenericDirectoryFDOptions) StateFields() []string { func (g *GenericDirectoryFDOptions) beforeSave() {} +// +checklocksignore func (g *GenericDirectoryFDOptions) StateSave(stateSinkObject state.Sink) { g.beforeSave() stateSinkObject.Save(0, &g.SeekEnd) @@ -161,6 +170,7 @@ func (g *GenericDirectoryFDOptions) StateSave(stateSinkObject state.Sink) { func (g *GenericDirectoryFDOptions) afterLoad() {} +// +checklocksignore func (g *GenericDirectoryFDOptions) StateLoad(stateSourceObject state.Source) { stateSourceObject.Load(0, &g.SeekEnd) } @@ -183,6 +193,7 @@ func (fd *GenericDirectoryFD) StateFields() []string { func (fd *GenericDirectoryFD) beforeSave() {} +// +checklocksignore func (fd *GenericDirectoryFD) StateSave(stateSinkObject state.Sink) { fd.beforeSave() stateSinkObject.Save(0, &fd.FileDescriptionDefaultImpl) @@ -196,6 +207,7 @@ func (fd *GenericDirectoryFD) StateSave(stateSinkObject state.Sink) { func (fd *GenericDirectoryFD) afterLoad() {} +// +checklocksignore func (fd *GenericDirectoryFD) StateLoad(stateSourceObject state.Source) { stateSourceObject.Load(0, &fd.FileDescriptionDefaultImpl) stateSourceObject.Load(1, &fd.DirectoryFileDescriptionDefaultImpl) @@ -218,6 +230,7 @@ func (i *InodeNoopRefCount) StateFields() []string { func (i *InodeNoopRefCount) beforeSave() {} +// +checklocksignore func (i *InodeNoopRefCount) StateSave(stateSinkObject state.Sink) { i.beforeSave() stateSinkObject.Save(0, &i.InodeTemporary) @@ -225,6 +238,7 @@ func (i *InodeNoopRefCount) StateSave(stateSinkObject state.Sink) { func (i *InodeNoopRefCount) afterLoad() {} +// +checklocksignore func (i *InodeNoopRefCount) StateLoad(stateSourceObject state.Source) { stateSourceObject.Load(0, &i.InodeTemporary) } @@ -239,12 +253,14 @@ func (i *InodeDirectoryNoNewChildren) StateFields() []string { func (i *InodeDirectoryNoNewChildren) beforeSave() {} +// +checklocksignore func (i *InodeDirectoryNoNewChildren) StateSave(stateSinkObject state.Sink) { i.beforeSave() } func (i *InodeDirectoryNoNewChildren) afterLoad() {} +// +checklocksignore func (i *InodeDirectoryNoNewChildren) StateLoad(stateSourceObject state.Source) { } @@ -260,6 +276,7 @@ func (i *InodeNotDirectory) StateFields() []string { func (i *InodeNotDirectory) beforeSave() {} +// +checklocksignore func (i *InodeNotDirectory) StateSave(stateSinkObject state.Sink) { i.beforeSave() stateSinkObject.Save(0, &i.InodeAlwaysValid) @@ -267,6 +284,7 @@ func (i *InodeNotDirectory) StateSave(stateSinkObject state.Sink) { func (i *InodeNotDirectory) afterLoad() {} +// +checklocksignore func (i *InodeNotDirectory) StateLoad(stateSourceObject state.Source) { stateSourceObject.Load(0, &i.InodeAlwaysValid) } @@ -281,12 +299,14 @@ func (i *InodeNotSymlink) StateFields() []string { func (i *InodeNotSymlink) beforeSave() {} +// +checklocksignore func (i *InodeNotSymlink) StateSave(stateSinkObject state.Sink) { i.beforeSave() } func (i *InodeNotSymlink) afterLoad() {} +// +checklocksignore func (i *InodeNotSymlink) StateLoad(stateSourceObject state.Source) { } @@ -312,6 +332,7 @@ func (a *InodeAttrs) StateFields() []string { func (a *InodeAttrs) beforeSave() {} +// +checklocksignore func (a *InodeAttrs) StateSave(stateSinkObject state.Sink) { a.beforeSave() stateSinkObject.Save(0, &a.devMajor) @@ -329,6 +350,7 @@ func (a *InodeAttrs) StateSave(stateSinkObject state.Sink) { func (a *InodeAttrs) afterLoad() {} +// +checklocksignore func (a *InodeAttrs) StateLoad(stateSourceObject state.Source) { stateSourceObject.Load(0, &a.devMajor) stateSourceObject.Load(1, &a.devMinor) @@ -358,6 +380,7 @@ func (s *slot) StateFields() []string { func (s *slot) beforeSave() {} +// +checklocksignore func (s *slot) StateSave(stateSinkObject state.Sink) { s.beforeSave() stateSinkObject.Save(0, &s.name) @@ -368,6 +391,7 @@ func (s *slot) StateSave(stateSinkObject state.Sink) { func (s *slot) afterLoad() {} +// +checklocksignore func (s *slot) StateLoad(stateSourceObject state.Source) { stateSourceObject.Load(0, &s.name) stateSourceObject.Load(1, &s.inode) @@ -387,6 +411,7 @@ func (o *OrderedChildrenOptions) StateFields() []string { func (o *OrderedChildrenOptions) beforeSave() {} +// +checklocksignore func (o *OrderedChildrenOptions) StateSave(stateSinkObject state.Sink) { o.beforeSave() stateSinkObject.Save(0, &o.Writable) @@ -394,6 +419,7 @@ func (o *OrderedChildrenOptions) StateSave(stateSinkObject state.Sink) { func (o *OrderedChildrenOptions) afterLoad() {} +// +checklocksignore func (o *OrderedChildrenOptions) StateLoad(stateSourceObject state.Source) { stateSourceObject.Load(0, &o.Writable) } @@ -412,6 +438,7 @@ func (o *OrderedChildren) StateFields() []string { func (o *OrderedChildren) beforeSave() {} +// +checklocksignore func (o *OrderedChildren) StateSave(stateSinkObject state.Sink) { o.beforeSave() stateSinkObject.Save(0, &o.writable) @@ -421,6 +448,7 @@ func (o *OrderedChildren) StateSave(stateSinkObject state.Sink) { func (o *OrderedChildren) afterLoad() {} +// +checklocksignore func (o *OrderedChildren) StateLoad(stateSourceObject state.Source) { stateSourceObject.Load(0, &o.writable) stateSourceObject.Load(1, &o.order) @@ -439,6 +467,7 @@ func (i *InodeSymlink) StateFields() []string { func (i *InodeSymlink) beforeSave() {} +// +checklocksignore func (i *InodeSymlink) StateSave(stateSinkObject state.Sink) { i.beforeSave() stateSinkObject.Save(0, &i.InodeNotDirectory) @@ -446,6 +475,7 @@ func (i *InodeSymlink) StateSave(stateSinkObject state.Sink) { func (i *InodeSymlink) afterLoad() {} +// +checklocksignore func (i *InodeSymlink) StateLoad(stateSourceObject state.Source) { stateSourceObject.Load(0, &i.InodeNotDirectory) } @@ -471,6 +501,7 @@ func (s *StaticDirectory) StateFields() []string { func (s *StaticDirectory) beforeSave() {} +// +checklocksignore func (s *StaticDirectory) StateSave(stateSinkObject state.Sink) { s.beforeSave() stateSinkObject.Save(0, &s.InodeAlwaysValid) @@ -487,6 +518,7 @@ func (s *StaticDirectory) StateSave(stateSinkObject state.Sink) { func (s *StaticDirectory) afterLoad() {} +// +checklocksignore func (s *StaticDirectory) StateLoad(stateSourceObject state.Source) { stateSourceObject.Load(0, &s.InodeAlwaysValid) stateSourceObject.Load(1, &s.InodeAttrs) @@ -510,12 +542,14 @@ func (i *InodeAlwaysValid) StateFields() []string { func (i *InodeAlwaysValid) beforeSave() {} +// +checklocksignore func (i *InodeAlwaysValid) StateSave(stateSinkObject state.Sink) { i.beforeSave() } func (i *InodeAlwaysValid) afterLoad() {} +// +checklocksignore func (i *InodeAlwaysValid) StateLoad(stateSourceObject state.Source) { } @@ -529,12 +563,14 @@ func (i *InodeTemporary) StateFields() []string { func (i *InodeTemporary) beforeSave() {} +// +checklocksignore func (i *InodeTemporary) StateSave(stateSinkObject state.Sink) { i.beforeSave() } func (i *InodeTemporary) afterLoad() {} +// +checklocksignore func (i *InodeTemporary) StateLoad(stateSourceObject state.Source) { } @@ -548,12 +584,14 @@ func (i *InodeNoStatFS) StateFields() []string { func (i *InodeNoStatFS) beforeSave() {} +// +checklocksignore func (i *InodeNoStatFS) StateSave(stateSinkObject state.Sink) { i.beforeSave() } func (i *InodeNoStatFS) afterLoad() {} +// +checklocksignore func (i *InodeNoStatFS) StateLoad(stateSourceObject state.Source) { } @@ -575,6 +613,7 @@ func (fs *Filesystem) StateFields() []string { func (fs *Filesystem) beforeSave() {} +// +checklocksignore func (fs *Filesystem) StateSave(stateSinkObject state.Sink) { fs.beforeSave() stateSinkObject.Save(0, &fs.vfsfs) @@ -588,6 +627,7 @@ func (fs *Filesystem) StateSave(stateSinkObject state.Sink) { func (fs *Filesystem) afterLoad() {} +// +checklocksignore func (fs *Filesystem) StateLoad(stateSourceObject state.Source) { stateSourceObject.Load(0, &fs.vfsfs) stateSourceObject.Load(1, &fs.droppedDentries) @@ -619,6 +659,7 @@ func (d *Dentry) StateFields() []string { func (d *Dentry) beforeSave() {} +// +checklocksignore func (d *Dentry) StateSave(stateSinkObject state.Sink) { d.beforeSave() stateSinkObject.Save(0, &d.vfsd) @@ -633,6 +674,7 @@ func (d *Dentry) StateSave(stateSinkObject state.Sink) { stateSinkObject.Save(9, &d.inode) } +// +checklocksignore func (d *Dentry) StateLoad(stateSourceObject state.Source) { stateSourceObject.Load(0, &d.vfsd) stateSourceObject.Load(1, &d.refs) @@ -661,6 +703,7 @@ func (i *inodePlatformFile) StateFields() []string { func (i *inodePlatformFile) beforeSave() {} +// +checklocksignore func (i *inodePlatformFile) StateSave(stateSinkObject state.Sink) { i.beforeSave() stateSinkObject.Save(0, &i.hostFD) @@ -668,6 +711,7 @@ func (i *inodePlatformFile) StateSave(stateSinkObject state.Sink) { stateSinkObject.Save(2, &i.fileMapper) } +// +checklocksignore func (i *inodePlatformFile) StateLoad(stateSourceObject state.Source) { stateSourceObject.Load(0, &i.hostFD) stateSourceObject.Load(1, &i.fdRefs) @@ -688,6 +732,7 @@ func (i *CachedMappable) StateFields() []string { func (i *CachedMappable) beforeSave() {} +// +checklocksignore func (i *CachedMappable) StateSave(stateSinkObject state.Sink) { i.beforeSave() stateSinkObject.Save(0, &i.mappings) @@ -696,6 +741,7 @@ func (i *CachedMappable) StateSave(stateSinkObject state.Sink) { func (i *CachedMappable) afterLoad() {} +// +checklocksignore func (i *CachedMappable) StateLoad(stateSourceObject state.Source) { stateSourceObject.Load(0, &i.mappings) stateSourceObject.Load(1, &i.pf) @@ -714,6 +760,7 @@ func (l *slotList) StateFields() []string { func (l *slotList) beforeSave() {} +// +checklocksignore func (l *slotList) StateSave(stateSinkObject state.Sink) { l.beforeSave() stateSinkObject.Save(0, &l.head) @@ -722,6 +769,7 @@ func (l *slotList) StateSave(stateSinkObject state.Sink) { func (l *slotList) afterLoad() {} +// +checklocksignore func (l *slotList) StateLoad(stateSourceObject state.Source) { stateSourceObject.Load(0, &l.head) stateSourceObject.Load(1, &l.tail) @@ -740,6 +788,7 @@ func (e *slotEntry) StateFields() []string { func (e *slotEntry) beforeSave() {} +// +checklocksignore func (e *slotEntry) StateSave(stateSinkObject state.Sink) { e.beforeSave() stateSinkObject.Save(0, &e.next) @@ -748,6 +797,7 @@ func (e *slotEntry) StateSave(stateSinkObject state.Sink) { func (e *slotEntry) afterLoad() {} +// +checklocksignore func (e *slotEntry) StateLoad(stateSourceObject state.Source) { stateSourceObject.Load(0, &e.next) stateSourceObject.Load(1, &e.prev) @@ -765,11 +815,13 @@ func (r *StaticDirectoryRefs) StateFields() []string { func (r *StaticDirectoryRefs) beforeSave() {} +// +checklocksignore func (r *StaticDirectoryRefs) StateSave(stateSinkObject state.Sink) { r.beforeSave() stateSinkObject.Save(0, &r.refCount) } +// +checklocksignore func (r *StaticDirectoryRefs) StateLoad(stateSourceObject state.Source) { stateSourceObject.Load(0, &r.refCount) stateSourceObject.AfterLoad(r.afterLoad) @@ -791,6 +843,7 @@ func (s *StaticSymlink) StateFields() []string { func (s *StaticSymlink) beforeSave() {} +// +checklocksignore func (s *StaticSymlink) StateSave(stateSinkObject state.Sink) { s.beforeSave() stateSinkObject.Save(0, &s.InodeAttrs) @@ -802,6 +855,7 @@ func (s *StaticSymlink) StateSave(stateSinkObject state.Sink) { func (s *StaticSymlink) afterLoad() {} +// +checklocksignore func (s *StaticSymlink) StateLoad(stateSourceObject state.Source) { stateSourceObject.Load(0, &s.InodeAttrs) stateSourceObject.Load(1, &s.InodeNoopRefCount) @@ -828,6 +882,7 @@ func (dir *syntheticDirectory) StateFields() []string { func (dir *syntheticDirectory) beforeSave() {} +// +checklocksignore func (dir *syntheticDirectory) StateSave(stateSinkObject state.Sink) { dir.beforeSave() stateSinkObject.Save(0, &dir.InodeAlwaysValid) @@ -841,6 +896,7 @@ func (dir *syntheticDirectory) StateSave(stateSinkObject state.Sink) { func (dir *syntheticDirectory) afterLoad() {} +// +checklocksignore func (dir *syntheticDirectory) StateLoad(stateSourceObject state.Source) { stateSourceObject.Load(0, &dir.InodeAlwaysValid) stateSourceObject.Load(1, &dir.InodeAttrs) @@ -863,11 +919,13 @@ func (r *syntheticDirectoryRefs) StateFields() []string { func (r *syntheticDirectoryRefs) beforeSave() {} +// +checklocksignore func (r *syntheticDirectoryRefs) StateSave(stateSinkObject state.Sink) { r.beforeSave() stateSinkObject.Save(0, &r.refCount) } +// +checklocksignore func (r *syntheticDirectoryRefs) StateLoad(stateSourceObject state.Source) { stateSourceObject.Load(0, &r.refCount) stateSourceObject.AfterLoad(r.afterLoad) diff --git a/pkg/sentry/fsimpl/overlay/overlay_state_autogen.go b/pkg/sentry/fsimpl/overlay/overlay_state_autogen.go index 7c60e23f5..923a2e71a 100644 --- a/pkg/sentry/fsimpl/overlay/overlay_state_autogen.go +++ b/pkg/sentry/fsimpl/overlay/overlay_state_autogen.go @@ -22,6 +22,7 @@ func (fd *directoryFD) StateFields() []string { func (fd *directoryFD) beforeSave() {} +// +checklocksignore func (fd *directoryFD) StateSave(stateSinkObject state.Sink) { fd.beforeSave() stateSinkObject.Save(0, &fd.fileDescription) @@ -33,6 +34,7 @@ func (fd *directoryFD) StateSave(stateSinkObject state.Sink) { func (fd *directoryFD) afterLoad() {} +// +checklocksignore func (fd *directoryFD) StateLoad(stateSourceObject state.Source) { stateSourceObject.Load(0, &fd.fileDescription) stateSourceObject.Load(1, &fd.DirectoryFileDescriptionDefaultImpl) @@ -51,12 +53,14 @@ func (fstype *FilesystemType) StateFields() []string { func (fstype *FilesystemType) beforeSave() {} +// +checklocksignore func (fstype *FilesystemType) StateSave(stateSinkObject state.Sink) { fstype.beforeSave() } func (fstype *FilesystemType) afterLoad() {} +// +checklocksignore func (fstype *FilesystemType) StateLoad(stateSourceObject state.Source) { } @@ -73,6 +77,7 @@ func (f *FilesystemOptions) StateFields() []string { func (f *FilesystemOptions) beforeSave() {} +// +checklocksignore func (f *FilesystemOptions) StateSave(stateSinkObject state.Sink) { f.beforeSave() stateSinkObject.Save(0, &f.UpperRoot) @@ -81,6 +86,7 @@ func (f *FilesystemOptions) StateSave(stateSinkObject state.Sink) { func (f *FilesystemOptions) afterLoad() {} +// +checklocksignore func (f *FilesystemOptions) StateLoad(stateSourceObject state.Source) { stateSourceObject.Load(0, &f.UpperRoot) stateSourceObject.Load(1, &f.LowerRoots) @@ -101,6 +107,7 @@ func (fs *filesystem) StateFields() []string { func (fs *filesystem) beforeSave() {} +// +checklocksignore func (fs *filesystem) StateSave(stateSinkObject state.Sink) { fs.beforeSave() stateSinkObject.Save(0, &fs.vfsfs) @@ -111,6 +118,7 @@ func (fs *filesystem) StateSave(stateSinkObject state.Sink) { func (fs *filesystem) afterLoad() {} +// +checklocksignore func (fs *filesystem) StateLoad(stateSourceObject state.Source) { stateSourceObject.Load(0, &fs.vfsfs) stateSourceObject.Load(1, &fs.opts) @@ -131,6 +139,7 @@ func (l *layerDevNumber) StateFields() []string { func (l *layerDevNumber) beforeSave() {} +// +checklocksignore func (l *layerDevNumber) StateSave(stateSinkObject state.Sink) { l.beforeSave() stateSinkObject.Save(0, &l.major) @@ -139,6 +148,7 @@ func (l *layerDevNumber) StateSave(stateSinkObject state.Sink) { func (l *layerDevNumber) afterLoad() {} +// +checklocksignore func (l *layerDevNumber) StateLoad(stateSourceObject state.Source) { stateSourceObject.Load(0, &l.major) stateSourceObject.Load(1, &l.minor) @@ -177,6 +187,7 @@ func (d *dentry) StateFields() []string { func (d *dentry) beforeSave() {} +// +checklocksignore func (d *dentry) StateSave(stateSinkObject state.Sink) { d.beforeSave() stateSinkObject.Save(0, &d.vfsd) @@ -203,6 +214,7 @@ func (d *dentry) StateSave(stateSinkObject state.Sink) { stateSinkObject.Save(21, &d.watches) } +// +checklocksignore func (d *dentry) StateLoad(stateSourceObject state.Source) { stateSourceObject.Load(0, &d.vfsd) stateSourceObject.Load(1, &d.refs) @@ -243,6 +255,7 @@ func (fd *fileDescription) StateFields() []string { func (fd *fileDescription) beforeSave() {} +// +checklocksignore func (fd *fileDescription) StateSave(stateSinkObject state.Sink) { fd.beforeSave() stateSinkObject.Save(0, &fd.vfsfd) @@ -252,6 +265,7 @@ func (fd *fileDescription) StateSave(stateSinkObject state.Sink) { func (fd *fileDescription) afterLoad() {} +// +checklocksignore func (fd *fileDescription) StateLoad(stateSourceObject state.Source) { stateSourceObject.Load(0, &fd.vfsfd) stateSourceObject.Load(1, &fd.FileDescriptionDefaultImpl) @@ -274,6 +288,7 @@ func (fd *regularFileFD) StateFields() []string { func (fd *regularFileFD) beforeSave() {} +// +checklocksignore func (fd *regularFileFD) StateSave(stateSinkObject state.Sink) { fd.beforeSave() stateSinkObject.Save(0, &fd.fileDescription) @@ -285,6 +300,7 @@ func (fd *regularFileFD) StateSave(stateSinkObject state.Sink) { func (fd *regularFileFD) afterLoad() {} +// +checklocksignore func (fd *regularFileFD) StateLoad(stateSourceObject state.Source) { stateSourceObject.Load(0, &fd.fileDescription) stateSourceObject.Load(1, &fd.copiedUp) diff --git a/pkg/sentry/fsimpl/pipefs/pipefs_state_autogen.go b/pkg/sentry/fsimpl/pipefs/pipefs_state_autogen.go index 474f83cdf..5f9e117c3 100644 --- a/pkg/sentry/fsimpl/pipefs/pipefs_state_autogen.go +++ b/pkg/sentry/fsimpl/pipefs/pipefs_state_autogen.go @@ -16,12 +16,14 @@ func (f *filesystemType) StateFields() []string { func (f *filesystemType) beforeSave() {} +// +checklocksignore func (f *filesystemType) StateSave(stateSinkObject state.Sink) { f.beforeSave() } func (f *filesystemType) afterLoad() {} +// +checklocksignore func (f *filesystemType) StateLoad(stateSourceObject state.Source) { } @@ -38,6 +40,7 @@ func (fs *filesystem) StateFields() []string { func (fs *filesystem) beforeSave() {} +// +checklocksignore func (fs *filesystem) StateSave(stateSinkObject state.Sink) { fs.beforeSave() stateSinkObject.Save(0, &fs.Filesystem) @@ -46,6 +49,7 @@ func (fs *filesystem) StateSave(stateSinkObject state.Sink) { func (fs *filesystem) afterLoad() {} +// +checklocksignore func (fs *filesystem) StateLoad(stateSourceObject state.Source) { stateSourceObject.Load(0, &fs.Filesystem) stateSourceObject.Load(1, &fs.devMinor) @@ -71,6 +75,7 @@ func (i *inode) StateFields() []string { func (i *inode) beforeSave() {} +// +checklocksignore func (i *inode) StateSave(stateSinkObject state.Sink) { i.beforeSave() stateSinkObject.Save(0, &i.InodeNotDirectory) @@ -86,6 +91,7 @@ func (i *inode) StateSave(stateSinkObject state.Sink) { func (i *inode) afterLoad() {} +// +checklocksignore func (i *inode) StateLoad(stateSourceObject state.Source) { stateSourceObject.Load(0, &i.InodeNotDirectory) stateSourceObject.Load(1, &i.InodeNotSymlink) diff --git a/pkg/sentry/fsimpl/proc/proc_state_autogen.go b/pkg/sentry/fsimpl/proc/proc_state_autogen.go index e1714d1a3..60e3a7485 100644 --- a/pkg/sentry/fsimpl/proc/proc_state_autogen.go +++ b/pkg/sentry/fsimpl/proc/proc_state_autogen.go @@ -18,11 +18,13 @@ func (r *fdDirInodeRefs) StateFields() []string { func (r *fdDirInodeRefs) beforeSave() {} +// +checklocksignore func (r *fdDirInodeRefs) StateSave(stateSinkObject state.Sink) { r.beforeSave() stateSinkObject.Save(0, &r.refCount) } +// +checklocksignore func (r *fdDirInodeRefs) StateLoad(stateSourceObject state.Source) { stateSourceObject.Load(0, &r.refCount) stateSourceObject.AfterLoad(r.afterLoad) @@ -40,11 +42,13 @@ func (r *fdInfoDirInodeRefs) StateFields() []string { func (r *fdInfoDirInodeRefs) beforeSave() {} +// +checklocksignore func (r *fdInfoDirInodeRefs) StateSave(stateSinkObject state.Sink) { r.beforeSave() stateSinkObject.Save(0, &r.refCount) } +// +checklocksignore func (r *fdInfoDirInodeRefs) StateLoad(stateSourceObject state.Source) { stateSourceObject.Load(0, &r.refCount) stateSourceObject.AfterLoad(r.afterLoad) @@ -60,12 +64,14 @@ func (ft *FilesystemType) StateFields() []string { func (ft *FilesystemType) beforeSave() {} +// +checklocksignore func (ft *FilesystemType) StateSave(stateSinkObject state.Sink) { ft.beforeSave() } func (ft *FilesystemType) afterLoad() {} +// +checklocksignore func (ft *FilesystemType) StateLoad(stateSourceObject state.Source) { } @@ -82,6 +88,7 @@ func (fs *filesystem) StateFields() []string { func (fs *filesystem) beforeSave() {} +// +checklocksignore func (fs *filesystem) StateSave(stateSinkObject state.Sink) { fs.beforeSave() stateSinkObject.Save(0, &fs.Filesystem) @@ -90,6 +97,7 @@ func (fs *filesystem) StateSave(stateSinkObject state.Sink) { func (fs *filesystem) afterLoad() {} +// +checklocksignore func (fs *filesystem) StateLoad(stateSourceObject state.Source) { stateSourceObject.Load(0, &fs.Filesystem) stateSourceObject.Load(1, &fs.devMinor) @@ -108,6 +116,7 @@ func (s *staticFile) StateFields() []string { func (s *staticFile) beforeSave() {} +// +checklocksignore func (s *staticFile) StateSave(stateSinkObject state.Sink) { s.beforeSave() stateSinkObject.Save(0, &s.DynamicBytesFile) @@ -116,6 +125,7 @@ func (s *staticFile) StateSave(stateSinkObject state.Sink) { func (s *staticFile) afterLoad() {} +// +checklocksignore func (s *staticFile) StateLoad(stateSourceObject state.Source) { stateSourceObject.Load(0, &s.DynamicBytesFile) stateSourceObject.Load(1, &s.StaticData) @@ -133,6 +143,7 @@ func (i *InternalData) StateFields() []string { func (i *InternalData) beforeSave() {} +// +checklocksignore func (i *InternalData) StateSave(stateSinkObject state.Sink) { i.beforeSave() stateSinkObject.Save(0, &i.Cgroups) @@ -140,6 +151,7 @@ func (i *InternalData) StateSave(stateSinkObject state.Sink) { func (i *InternalData) afterLoad() {} +// +checklocksignore func (i *InternalData) StateLoad(stateSourceObject state.Source) { stateSourceObject.Load(0, &i.Cgroups) } @@ -154,12 +166,14 @@ func (i *implStatFS) StateFields() []string { func (i *implStatFS) beforeSave() {} +// +checklocksignore func (i *implStatFS) StateSave(stateSinkObject state.Sink) { i.beforeSave() } func (i *implStatFS) afterLoad() {} +// +checklocksignore func (i *implStatFS) StateLoad(stateSourceObject state.Source) { } @@ -187,6 +201,7 @@ func (i *subtasksInode) StateFields() []string { func (i *subtasksInode) beforeSave() {} +// +checklocksignore func (i *subtasksInode) StateSave(stateSinkObject state.Sink) { i.beforeSave() stateSinkObject.Save(0, &i.implStatFS) @@ -206,6 +221,7 @@ func (i *subtasksInode) StateSave(stateSinkObject state.Sink) { func (i *subtasksInode) afterLoad() {} +// +checklocksignore func (i *subtasksInode) StateLoad(stateSourceObject state.Source) { stateSourceObject.Load(0, &i.implStatFS) stateSourceObject.Load(1, &i.InodeAlwaysValid) @@ -235,6 +251,7 @@ func (fd *subtasksFD) StateFields() []string { func (fd *subtasksFD) beforeSave() {} +// +checklocksignore func (fd *subtasksFD) StateSave(stateSinkObject state.Sink) { fd.beforeSave() stateSinkObject.Save(0, &fd.GenericDirectoryFD) @@ -243,6 +260,7 @@ func (fd *subtasksFD) StateSave(stateSinkObject state.Sink) { func (fd *subtasksFD) afterLoad() {} +// +checklocksignore func (fd *subtasksFD) StateLoad(stateSourceObject state.Source) { stateSourceObject.Load(0, &fd.GenericDirectoryFD) stateSourceObject.Load(1, &fd.task) @@ -260,11 +278,13 @@ func (r *subtasksInodeRefs) StateFields() []string { func (r *subtasksInodeRefs) beforeSave() {} +// +checklocksignore func (r *subtasksInodeRefs) StateSave(stateSinkObject state.Sink) { r.beforeSave() stateSinkObject.Save(0, &r.refCount) } +// +checklocksignore func (r *subtasksInodeRefs) StateLoad(stateSourceObject state.Source) { stateSourceObject.Load(0, &r.refCount) stateSourceObject.AfterLoad(r.afterLoad) @@ -290,6 +310,7 @@ func (i *taskInode) StateFields() []string { func (i *taskInode) beforeSave() {} +// +checklocksignore func (i *taskInode) StateSave(stateSinkObject state.Sink) { i.beforeSave() stateSinkObject.Save(0, &i.implStatFS) @@ -305,6 +326,7 @@ func (i *taskInode) StateSave(stateSinkObject state.Sink) { func (i *taskInode) afterLoad() {} +// +checklocksignore func (i *taskInode) StateLoad(stateSourceObject state.Source) { stateSourceObject.Load(0, &i.implStatFS) stateSourceObject.Load(1, &i.InodeAttrs) @@ -330,6 +352,7 @@ func (i *taskOwnedInode) StateFields() []string { func (i *taskOwnedInode) beforeSave() {} +// +checklocksignore func (i *taskOwnedInode) StateSave(stateSinkObject state.Sink) { i.beforeSave() stateSinkObject.Save(0, &i.Inode) @@ -338,6 +361,7 @@ func (i *taskOwnedInode) StateSave(stateSinkObject state.Sink) { func (i *taskOwnedInode) afterLoad() {} +// +checklocksignore func (i *taskOwnedInode) StateLoad(stateSourceObject state.Source) { stateSourceObject.Load(0, &i.Inode) stateSourceObject.Load(1, &i.owner) @@ -358,6 +382,7 @@ func (i *fdDir) StateFields() []string { func (i *fdDir) beforeSave() {} +// +checklocksignore func (i *fdDir) StateSave(stateSinkObject state.Sink) { i.beforeSave() stateSinkObject.Save(0, &i.locks) @@ -368,6 +393,7 @@ func (i *fdDir) StateSave(stateSinkObject state.Sink) { func (i *fdDir) afterLoad() {} +// +checklocksignore func (i *fdDir) StateLoad(stateSourceObject state.Source) { stateSourceObject.Load(0, &i.locks) stateSourceObject.Load(1, &i.fs) @@ -395,6 +421,7 @@ func (i *fdDirInode) StateFields() []string { func (i *fdDirInode) beforeSave() {} +// +checklocksignore func (i *fdDirInode) StateSave(stateSinkObject state.Sink) { i.beforeSave() stateSinkObject.Save(0, &i.fdDir) @@ -410,6 +437,7 @@ func (i *fdDirInode) StateSave(stateSinkObject state.Sink) { func (i *fdDirInode) afterLoad() {} +// +checklocksignore func (i *fdDirInode) StateLoad(stateSourceObject state.Source) { stateSourceObject.Load(0, &i.fdDir) stateSourceObject.Load(1, &i.fdDirInodeRefs) @@ -439,6 +467,7 @@ func (s *fdSymlink) StateFields() []string { func (s *fdSymlink) beforeSave() {} +// +checklocksignore func (s *fdSymlink) StateSave(stateSinkObject state.Sink) { s.beforeSave() stateSinkObject.Save(0, &s.implStatFS) @@ -451,6 +480,7 @@ func (s *fdSymlink) StateSave(stateSinkObject state.Sink) { func (s *fdSymlink) afterLoad() {} +// +checklocksignore func (s *fdSymlink) StateLoad(stateSourceObject state.Source) { stateSourceObject.Load(0, &s.implStatFS) stateSourceObject.Load(1, &s.InodeAttrs) @@ -480,6 +510,7 @@ func (i *fdInfoDirInode) StateFields() []string { func (i *fdInfoDirInode) beforeSave() {} +// +checklocksignore func (i *fdInfoDirInode) StateSave(stateSinkObject state.Sink) { i.beforeSave() stateSinkObject.Save(0, &i.fdDir) @@ -495,6 +526,7 @@ func (i *fdInfoDirInode) StateSave(stateSinkObject state.Sink) { func (i *fdInfoDirInode) afterLoad() {} +// +checklocksignore func (i *fdInfoDirInode) StateLoad(stateSourceObject state.Source) { stateSourceObject.Load(0, &i.fdDir) stateSourceObject.Load(1, &i.fdInfoDirInodeRefs) @@ -521,6 +553,7 @@ func (d *fdInfoData) StateFields() []string { func (d *fdInfoData) beforeSave() {} +// +checklocksignore func (d *fdInfoData) StateSave(stateSinkObject state.Sink) { d.beforeSave() stateSinkObject.Save(0, &d.DynamicBytesFile) @@ -530,6 +563,7 @@ func (d *fdInfoData) StateSave(stateSinkObject state.Sink) { func (d *fdInfoData) afterLoad() {} +// +checklocksignore func (d *fdInfoData) StateLoad(stateSourceObject state.Source) { stateSourceObject.Load(0, &d.DynamicBytesFile) stateSourceObject.Load(1, &d.task) @@ -549,6 +583,7 @@ func (d *auxvData) StateFields() []string { func (d *auxvData) beforeSave() {} +// +checklocksignore func (d *auxvData) StateSave(stateSinkObject state.Sink) { d.beforeSave() stateSinkObject.Save(0, &d.DynamicBytesFile) @@ -557,6 +592,7 @@ func (d *auxvData) StateSave(stateSinkObject state.Sink) { func (d *auxvData) afterLoad() {} +// +checklocksignore func (d *auxvData) StateLoad(stateSourceObject state.Source) { stateSourceObject.Load(0, &d.DynamicBytesFile) stateSourceObject.Load(1, &d.task) @@ -576,6 +612,7 @@ func (d *cmdlineData) StateFields() []string { func (d *cmdlineData) beforeSave() {} +// +checklocksignore func (d *cmdlineData) StateSave(stateSinkObject state.Sink) { d.beforeSave() stateSinkObject.Save(0, &d.DynamicBytesFile) @@ -585,6 +622,7 @@ func (d *cmdlineData) StateSave(stateSinkObject state.Sink) { func (d *cmdlineData) afterLoad() {} +// +checklocksignore func (d *cmdlineData) StateLoad(stateSourceObject state.Source) { stateSourceObject.Load(0, &d.DynamicBytesFile) stateSourceObject.Load(1, &d.task) @@ -604,6 +642,7 @@ func (i *commInode) StateFields() []string { func (i *commInode) beforeSave() {} +// +checklocksignore func (i *commInode) StateSave(stateSinkObject state.Sink) { i.beforeSave() stateSinkObject.Save(0, &i.DynamicBytesFile) @@ -612,6 +651,7 @@ func (i *commInode) StateSave(stateSinkObject state.Sink) { func (i *commInode) afterLoad() {} +// +checklocksignore func (i *commInode) StateLoad(stateSourceObject state.Source) { stateSourceObject.Load(0, &i.DynamicBytesFile) stateSourceObject.Load(1, &i.task) @@ -630,6 +670,7 @@ func (d *commData) StateFields() []string { func (d *commData) beforeSave() {} +// +checklocksignore func (d *commData) StateSave(stateSinkObject state.Sink) { d.beforeSave() stateSinkObject.Save(0, &d.DynamicBytesFile) @@ -638,6 +679,7 @@ func (d *commData) StateSave(stateSinkObject state.Sink) { func (d *commData) afterLoad() {} +// +checklocksignore func (d *commData) StateLoad(stateSourceObject state.Source) { stateSourceObject.Load(0, &d.DynamicBytesFile) stateSourceObject.Load(1, &d.task) @@ -657,6 +699,7 @@ func (d *idMapData) StateFields() []string { func (d *idMapData) beforeSave() {} +// +checklocksignore func (d *idMapData) StateSave(stateSinkObject state.Sink) { d.beforeSave() stateSinkObject.Save(0, &d.DynamicBytesFile) @@ -666,6 +709,7 @@ func (d *idMapData) StateSave(stateSinkObject state.Sink) { func (d *idMapData) afterLoad() {} +// +checklocksignore func (d *idMapData) StateLoad(stateSourceObject state.Source) { stateSourceObject.Load(0, &d.DynamicBytesFile) stateSourceObject.Load(1, &d.task) @@ -690,6 +734,7 @@ func (f *memInode) StateFields() []string { func (f *memInode) beforeSave() {} +// +checklocksignore func (f *memInode) StateSave(stateSinkObject state.Sink) { f.beforeSave() stateSinkObject.Save(0, &f.InodeAttrs) @@ -703,6 +748,7 @@ func (f *memInode) StateSave(stateSinkObject state.Sink) { func (f *memInode) afterLoad() {} +// +checklocksignore func (f *memInode) StateLoad(stateSourceObject state.Source) { stateSourceObject.Load(0, &f.InodeAttrs) stateSourceObject.Load(1, &f.InodeNoStatFS) @@ -729,6 +775,7 @@ func (fd *memFD) StateFields() []string { func (fd *memFD) beforeSave() {} +// +checklocksignore func (fd *memFD) StateSave(stateSinkObject state.Sink) { fd.beforeSave() stateSinkObject.Save(0, &fd.vfsfd) @@ -740,6 +787,7 @@ func (fd *memFD) StateSave(stateSinkObject state.Sink) { func (fd *memFD) afterLoad() {} +// +checklocksignore func (fd *memFD) StateLoad(stateSourceObject state.Source) { stateSourceObject.Load(0, &fd.vfsfd) stateSourceObject.Load(1, &fd.FileDescriptionDefaultImpl) @@ -761,6 +809,7 @@ func (d *mapsData) StateFields() []string { func (d *mapsData) beforeSave() {} +// +checklocksignore func (d *mapsData) StateSave(stateSinkObject state.Sink) { d.beforeSave() stateSinkObject.Save(0, &d.DynamicBytesFile) @@ -769,6 +818,7 @@ func (d *mapsData) StateSave(stateSinkObject state.Sink) { func (d *mapsData) afterLoad() {} +// +checklocksignore func (d *mapsData) StateLoad(stateSourceObject state.Source) { stateSourceObject.Load(0, &d.DynamicBytesFile) stateSourceObject.Load(1, &d.task) @@ -787,6 +837,7 @@ func (d *smapsData) StateFields() []string { func (d *smapsData) beforeSave() {} +// +checklocksignore func (d *smapsData) StateSave(stateSinkObject state.Sink) { d.beforeSave() stateSinkObject.Save(0, &d.DynamicBytesFile) @@ -795,6 +846,7 @@ func (d *smapsData) StateSave(stateSinkObject state.Sink) { func (d *smapsData) afterLoad() {} +// +checklocksignore func (d *smapsData) StateLoad(stateSourceObject state.Source) { stateSourceObject.Load(0, &d.DynamicBytesFile) stateSourceObject.Load(1, &d.task) @@ -815,6 +867,7 @@ func (s *taskStatData) StateFields() []string { func (s *taskStatData) beforeSave() {} +// +checklocksignore func (s *taskStatData) StateSave(stateSinkObject state.Sink) { s.beforeSave() stateSinkObject.Save(0, &s.DynamicBytesFile) @@ -825,6 +878,7 @@ func (s *taskStatData) StateSave(stateSinkObject state.Sink) { func (s *taskStatData) afterLoad() {} +// +checklocksignore func (s *taskStatData) StateLoad(stateSourceObject state.Source) { stateSourceObject.Load(0, &s.DynamicBytesFile) stateSourceObject.Load(1, &s.task) @@ -845,6 +899,7 @@ func (s *statmData) StateFields() []string { func (s *statmData) beforeSave() {} +// +checklocksignore func (s *statmData) StateSave(stateSinkObject state.Sink) { s.beforeSave() stateSinkObject.Save(0, &s.DynamicBytesFile) @@ -853,6 +908,7 @@ func (s *statmData) StateSave(stateSinkObject state.Sink) { func (s *statmData) afterLoad() {} +// +checklocksignore func (s *statmData) StateLoad(stateSourceObject state.Source) { stateSourceObject.Load(0, &s.DynamicBytesFile) stateSourceObject.Load(1, &s.task) @@ -872,6 +928,7 @@ func (s *statusData) StateFields() []string { func (s *statusData) beforeSave() {} +// +checklocksignore func (s *statusData) StateSave(stateSinkObject state.Sink) { s.beforeSave() stateSinkObject.Save(0, &s.DynamicBytesFile) @@ -881,6 +938,7 @@ func (s *statusData) StateSave(stateSinkObject state.Sink) { func (s *statusData) afterLoad() {} +// +checklocksignore func (s *statusData) StateLoad(stateSourceObject state.Source) { stateSourceObject.Load(0, &s.DynamicBytesFile) stateSourceObject.Load(1, &s.task) @@ -900,6 +958,7 @@ func (i *ioData) StateFields() []string { func (i *ioData) beforeSave() {} +// +checklocksignore func (i *ioData) StateSave(stateSinkObject state.Sink) { i.beforeSave() stateSinkObject.Save(0, &i.DynamicBytesFile) @@ -908,6 +967,7 @@ func (i *ioData) StateSave(stateSinkObject state.Sink) { func (i *ioData) afterLoad() {} +// +checklocksignore func (i *ioData) StateLoad(stateSourceObject state.Source) { stateSourceObject.Load(0, &i.DynamicBytesFile) stateSourceObject.Load(1, &i.ioUsage) @@ -926,6 +986,7 @@ func (o *oomScoreAdj) StateFields() []string { func (o *oomScoreAdj) beforeSave() {} +// +checklocksignore func (o *oomScoreAdj) StateSave(stateSinkObject state.Sink) { o.beforeSave() stateSinkObject.Save(0, &o.DynamicBytesFile) @@ -934,6 +995,7 @@ func (o *oomScoreAdj) StateSave(stateSinkObject state.Sink) { func (o *oomScoreAdj) afterLoad() {} +// +checklocksignore func (o *oomScoreAdj) StateLoad(stateSourceObject state.Source) { stateSourceObject.Load(0, &o.DynamicBytesFile) stateSourceObject.Load(1, &o.task) @@ -955,6 +1017,7 @@ func (s *exeSymlink) StateFields() []string { func (s *exeSymlink) beforeSave() {} +// +checklocksignore func (s *exeSymlink) StateSave(stateSinkObject state.Sink) { s.beforeSave() stateSinkObject.Save(0, &s.implStatFS) @@ -966,6 +1029,7 @@ func (s *exeSymlink) StateSave(stateSinkObject state.Sink) { func (s *exeSymlink) afterLoad() {} +// +checklocksignore func (s *exeSymlink) StateLoad(stateSourceObject state.Source) { stateSourceObject.Load(0, &s.implStatFS) stateSourceObject.Load(1, &s.InodeAttrs) @@ -990,6 +1054,7 @@ func (s *cwdSymlink) StateFields() []string { func (s *cwdSymlink) beforeSave() {} +// +checklocksignore func (s *cwdSymlink) StateSave(stateSinkObject state.Sink) { s.beforeSave() stateSinkObject.Save(0, &s.implStatFS) @@ -1001,6 +1066,7 @@ func (s *cwdSymlink) StateSave(stateSinkObject state.Sink) { func (s *cwdSymlink) afterLoad() {} +// +checklocksignore func (s *cwdSymlink) StateLoad(stateSourceObject state.Source) { stateSourceObject.Load(0, &s.implStatFS) stateSourceObject.Load(1, &s.InodeAttrs) @@ -1022,6 +1088,7 @@ func (i *mountInfoData) StateFields() []string { func (i *mountInfoData) beforeSave() {} +// +checklocksignore func (i *mountInfoData) StateSave(stateSinkObject state.Sink) { i.beforeSave() stateSinkObject.Save(0, &i.DynamicBytesFile) @@ -1030,6 +1097,7 @@ func (i *mountInfoData) StateSave(stateSinkObject state.Sink) { func (i *mountInfoData) afterLoad() {} +// +checklocksignore func (i *mountInfoData) StateLoad(stateSourceObject state.Source) { stateSourceObject.Load(0, &i.DynamicBytesFile) stateSourceObject.Load(1, &i.task) @@ -1048,6 +1116,7 @@ func (i *mountsData) StateFields() []string { func (i *mountsData) beforeSave() {} +// +checklocksignore func (i *mountsData) StateSave(stateSinkObject state.Sink) { i.beforeSave() stateSinkObject.Save(0, &i.DynamicBytesFile) @@ -1056,6 +1125,7 @@ func (i *mountsData) StateSave(stateSinkObject state.Sink) { func (i *mountsData) afterLoad() {} +// +checklocksignore func (i *mountsData) StateLoad(stateSourceObject state.Source) { stateSourceObject.Load(0, &i.DynamicBytesFile) stateSourceObject.Load(1, &i.task) @@ -1074,6 +1144,7 @@ func (s *namespaceSymlink) StateFields() []string { func (s *namespaceSymlink) beforeSave() {} +// +checklocksignore func (s *namespaceSymlink) StateSave(stateSinkObject state.Sink) { s.beforeSave() stateSinkObject.Save(0, &s.StaticSymlink) @@ -1082,6 +1153,7 @@ func (s *namespaceSymlink) StateSave(stateSinkObject state.Sink) { func (s *namespaceSymlink) afterLoad() {} +// +checklocksignore func (s *namespaceSymlink) StateLoad(stateSourceObject state.Source) { stateSourceObject.Load(0, &s.StaticSymlink) stateSourceObject.Load(1, &s.task) @@ -1104,6 +1176,7 @@ func (i *namespaceInode) StateFields() []string { func (i *namespaceInode) beforeSave() {} +// +checklocksignore func (i *namespaceInode) StateSave(stateSinkObject state.Sink) { i.beforeSave() stateSinkObject.Save(0, &i.implStatFS) @@ -1116,6 +1189,7 @@ func (i *namespaceInode) StateSave(stateSinkObject state.Sink) { func (i *namespaceInode) afterLoad() {} +// +checklocksignore func (i *namespaceInode) StateLoad(stateSourceObject state.Source) { stateSourceObject.Load(0, &i.implStatFS) stateSourceObject.Load(1, &i.InodeAttrs) @@ -1140,6 +1214,7 @@ func (fd *namespaceFD) StateFields() []string { func (fd *namespaceFD) beforeSave() {} +// +checklocksignore func (fd *namespaceFD) StateSave(stateSinkObject state.Sink) { fd.beforeSave() stateSinkObject.Save(0, &fd.FileDescriptionDefaultImpl) @@ -1150,6 +1225,7 @@ func (fd *namespaceFD) StateSave(stateSinkObject state.Sink) { func (fd *namespaceFD) afterLoad() {} +// +checklocksignore func (fd *namespaceFD) StateLoad(stateSourceObject state.Source) { stateSourceObject.Load(0, &fd.FileDescriptionDefaultImpl) stateSourceObject.Load(1, &fd.LockFD) @@ -1169,11 +1245,13 @@ func (r *taskInodeRefs) StateFields() []string { func (r *taskInodeRefs) beforeSave() {} +// +checklocksignore func (r *taskInodeRefs) StateSave(stateSinkObject state.Sink) { r.beforeSave() stateSinkObject.Save(0, &r.refCount) } +// +checklocksignore func (r *taskInodeRefs) StateLoad(stateSourceObject state.Source) { stateSourceObject.Load(0, &r.refCount) stateSourceObject.AfterLoad(r.afterLoad) @@ -1192,6 +1270,7 @@ func (n *ifinet6) StateFields() []string { func (n *ifinet6) beforeSave() {} +// +checklocksignore func (n *ifinet6) StateSave(stateSinkObject state.Sink) { n.beforeSave() stateSinkObject.Save(0, &n.DynamicBytesFile) @@ -1200,6 +1279,7 @@ func (n *ifinet6) StateSave(stateSinkObject state.Sink) { func (n *ifinet6) afterLoad() {} +// +checklocksignore func (n *ifinet6) StateLoad(stateSourceObject state.Source) { stateSourceObject.Load(0, &n.DynamicBytesFile) stateSourceObject.Load(1, &n.stack) @@ -1218,6 +1298,7 @@ func (n *netDevData) StateFields() []string { func (n *netDevData) beforeSave() {} +// +checklocksignore func (n *netDevData) StateSave(stateSinkObject state.Sink) { n.beforeSave() stateSinkObject.Save(0, &n.DynamicBytesFile) @@ -1226,6 +1307,7 @@ func (n *netDevData) StateSave(stateSinkObject state.Sink) { func (n *netDevData) afterLoad() {} +// +checklocksignore func (n *netDevData) StateLoad(stateSourceObject state.Source) { stateSourceObject.Load(0, &n.DynamicBytesFile) stateSourceObject.Load(1, &n.stack) @@ -1244,6 +1326,7 @@ func (n *netUnixData) StateFields() []string { func (n *netUnixData) beforeSave() {} +// +checklocksignore func (n *netUnixData) StateSave(stateSinkObject state.Sink) { n.beforeSave() stateSinkObject.Save(0, &n.DynamicBytesFile) @@ -1252,6 +1335,7 @@ func (n *netUnixData) StateSave(stateSinkObject state.Sink) { func (n *netUnixData) afterLoad() {} +// +checklocksignore func (n *netUnixData) StateLoad(stateSourceObject state.Source) { stateSourceObject.Load(0, &n.DynamicBytesFile) stateSourceObject.Load(1, &n.kernel) @@ -1270,6 +1354,7 @@ func (d *netTCPData) StateFields() []string { func (d *netTCPData) beforeSave() {} +// +checklocksignore func (d *netTCPData) StateSave(stateSinkObject state.Sink) { d.beforeSave() stateSinkObject.Save(0, &d.DynamicBytesFile) @@ -1278,6 +1363,7 @@ func (d *netTCPData) StateSave(stateSinkObject state.Sink) { func (d *netTCPData) afterLoad() {} +// +checklocksignore func (d *netTCPData) StateLoad(stateSourceObject state.Source) { stateSourceObject.Load(0, &d.DynamicBytesFile) stateSourceObject.Load(1, &d.kernel) @@ -1296,6 +1382,7 @@ func (d *netTCP6Data) StateFields() []string { func (d *netTCP6Data) beforeSave() {} +// +checklocksignore func (d *netTCP6Data) StateSave(stateSinkObject state.Sink) { d.beforeSave() stateSinkObject.Save(0, &d.DynamicBytesFile) @@ -1304,6 +1391,7 @@ func (d *netTCP6Data) StateSave(stateSinkObject state.Sink) { func (d *netTCP6Data) afterLoad() {} +// +checklocksignore func (d *netTCP6Data) StateLoad(stateSourceObject state.Source) { stateSourceObject.Load(0, &d.DynamicBytesFile) stateSourceObject.Load(1, &d.kernel) @@ -1322,6 +1410,7 @@ func (d *netUDPData) StateFields() []string { func (d *netUDPData) beforeSave() {} +// +checklocksignore func (d *netUDPData) StateSave(stateSinkObject state.Sink) { d.beforeSave() stateSinkObject.Save(0, &d.DynamicBytesFile) @@ -1330,6 +1419,7 @@ func (d *netUDPData) StateSave(stateSinkObject state.Sink) { func (d *netUDPData) afterLoad() {} +// +checklocksignore func (d *netUDPData) StateLoad(stateSourceObject state.Source) { stateSourceObject.Load(0, &d.DynamicBytesFile) stateSourceObject.Load(1, &d.kernel) @@ -1348,6 +1438,7 @@ func (d *netSnmpData) StateFields() []string { func (d *netSnmpData) beforeSave() {} +// +checklocksignore func (d *netSnmpData) StateSave(stateSinkObject state.Sink) { d.beforeSave() stateSinkObject.Save(0, &d.DynamicBytesFile) @@ -1356,6 +1447,7 @@ func (d *netSnmpData) StateSave(stateSinkObject state.Sink) { func (d *netSnmpData) afterLoad() {} +// +checklocksignore func (d *netSnmpData) StateLoad(stateSourceObject state.Source) { stateSourceObject.Load(0, &d.DynamicBytesFile) stateSourceObject.Load(1, &d.stack) @@ -1374,6 +1466,7 @@ func (s *snmpLine) StateFields() []string { func (s *snmpLine) beforeSave() {} +// +checklocksignore func (s *snmpLine) StateSave(stateSinkObject state.Sink) { s.beforeSave() stateSinkObject.Save(0, &s.prefix) @@ -1382,6 +1475,7 @@ func (s *snmpLine) StateSave(stateSinkObject state.Sink) { func (s *snmpLine) afterLoad() {} +// +checklocksignore func (s *snmpLine) StateLoad(stateSourceObject state.Source) { stateSourceObject.Load(0, &s.prefix) stateSourceObject.Load(1, &s.header) @@ -1400,6 +1494,7 @@ func (d *netRouteData) StateFields() []string { func (d *netRouteData) beforeSave() {} +// +checklocksignore func (d *netRouteData) StateSave(stateSinkObject state.Sink) { d.beforeSave() stateSinkObject.Save(0, &d.DynamicBytesFile) @@ -1408,6 +1503,7 @@ func (d *netRouteData) StateSave(stateSinkObject state.Sink) { func (d *netRouteData) afterLoad() {} +// +checklocksignore func (d *netRouteData) StateLoad(stateSourceObject state.Source) { stateSourceObject.Load(0, &d.DynamicBytesFile) stateSourceObject.Load(1, &d.stack) @@ -1426,6 +1522,7 @@ func (d *netStatData) StateFields() []string { func (d *netStatData) beforeSave() {} +// +checklocksignore func (d *netStatData) StateSave(stateSinkObject state.Sink) { d.beforeSave() stateSinkObject.Save(0, &d.DynamicBytesFile) @@ -1434,6 +1531,7 @@ func (d *netStatData) StateSave(stateSinkObject state.Sink) { func (d *netStatData) afterLoad() {} +// +checklocksignore func (d *netStatData) StateLoad(stateSourceObject state.Source) { stateSourceObject.Load(0, &d.DynamicBytesFile) stateSourceObject.Load(1, &d.stack) @@ -1462,6 +1560,7 @@ func (i *tasksInode) StateFields() []string { func (i *tasksInode) beforeSave() {} +// +checklocksignore func (i *tasksInode) StateSave(stateSinkObject state.Sink) { i.beforeSave() stateSinkObject.Save(0, &i.implStatFS) @@ -1480,6 +1579,7 @@ func (i *tasksInode) StateSave(stateSinkObject state.Sink) { func (i *tasksInode) afterLoad() {} +// +checklocksignore func (i *tasksInode) StateLoad(stateSourceObject state.Source) { stateSourceObject.Load(0, &i.implStatFS) stateSourceObject.Load(1, &i.InodeAlwaysValid) @@ -1508,6 +1608,7 @@ func (s *staticFileSetStat) StateFields() []string { func (s *staticFileSetStat) beforeSave() {} +// +checklocksignore func (s *staticFileSetStat) StateSave(stateSinkObject state.Sink) { s.beforeSave() stateSinkObject.Save(0, &s.dynamicBytesFileSetAttr) @@ -1516,6 +1617,7 @@ func (s *staticFileSetStat) StateSave(stateSinkObject state.Sink) { func (s *staticFileSetStat) afterLoad() {} +// +checklocksignore func (s *staticFileSetStat) StateLoad(stateSourceObject state.Source) { stateSourceObject.Load(0, &s.dynamicBytesFileSetAttr) stateSourceObject.Load(1, &s.StaticData) @@ -1537,6 +1639,7 @@ func (s *selfSymlink) StateFields() []string { func (s *selfSymlink) beforeSave() {} +// +checklocksignore func (s *selfSymlink) StateSave(stateSinkObject state.Sink) { s.beforeSave() stateSinkObject.Save(0, &s.implStatFS) @@ -1548,6 +1651,7 @@ func (s *selfSymlink) StateSave(stateSinkObject state.Sink) { func (s *selfSymlink) afterLoad() {} +// +checklocksignore func (s *selfSymlink) StateLoad(stateSourceObject state.Source) { stateSourceObject.Load(0, &s.implStatFS) stateSourceObject.Load(1, &s.InodeAttrs) @@ -1572,6 +1676,7 @@ func (s *threadSelfSymlink) StateFields() []string { func (s *threadSelfSymlink) beforeSave() {} +// +checklocksignore func (s *threadSelfSymlink) StateSave(stateSinkObject state.Sink) { s.beforeSave() stateSinkObject.Save(0, &s.implStatFS) @@ -1583,6 +1688,7 @@ func (s *threadSelfSymlink) StateSave(stateSinkObject state.Sink) { func (s *threadSelfSymlink) afterLoad() {} +// +checklocksignore func (s *threadSelfSymlink) StateLoad(stateSourceObject state.Source) { stateSourceObject.Load(0, &s.implStatFS) stateSourceObject.Load(1, &s.InodeAttrs) @@ -1603,6 +1709,7 @@ func (d *dynamicBytesFileSetAttr) StateFields() []string { func (d *dynamicBytesFileSetAttr) beforeSave() {} +// +checklocksignore func (d *dynamicBytesFileSetAttr) StateSave(stateSinkObject state.Sink) { d.beforeSave() stateSinkObject.Save(0, &d.DynamicBytesFile) @@ -1610,6 +1717,7 @@ func (d *dynamicBytesFileSetAttr) StateSave(stateSinkObject state.Sink) { func (d *dynamicBytesFileSetAttr) afterLoad() {} +// +checklocksignore func (d *dynamicBytesFileSetAttr) StateLoad(stateSourceObject state.Source) { stateSourceObject.Load(0, &d.DynamicBytesFile) } @@ -1635,6 +1743,7 @@ func (c *cpuStats) StateFields() []string { func (c *cpuStats) beforeSave() {} +// +checklocksignore func (c *cpuStats) StateSave(stateSinkObject state.Sink) { c.beforeSave() stateSinkObject.Save(0, &c.user) @@ -1651,6 +1760,7 @@ func (c *cpuStats) StateSave(stateSinkObject state.Sink) { func (c *cpuStats) afterLoad() {} +// +checklocksignore func (c *cpuStats) StateLoad(stateSourceObject state.Source) { stateSourceObject.Load(0, &c.user) stateSourceObject.Load(1, &c.nice) @@ -1676,6 +1786,7 @@ func (s *statData) StateFields() []string { func (s *statData) beforeSave() {} +// +checklocksignore func (s *statData) StateSave(stateSinkObject state.Sink) { s.beforeSave() stateSinkObject.Save(0, &s.dynamicBytesFileSetAttr) @@ -1683,6 +1794,7 @@ func (s *statData) StateSave(stateSinkObject state.Sink) { func (s *statData) afterLoad() {} +// +checklocksignore func (s *statData) StateLoad(stateSourceObject state.Source) { stateSourceObject.Load(0, &s.dynamicBytesFileSetAttr) } @@ -1699,6 +1811,7 @@ func (l *loadavgData) StateFields() []string { func (l *loadavgData) beforeSave() {} +// +checklocksignore func (l *loadavgData) StateSave(stateSinkObject state.Sink) { l.beforeSave() stateSinkObject.Save(0, &l.dynamicBytesFileSetAttr) @@ -1706,6 +1819,7 @@ func (l *loadavgData) StateSave(stateSinkObject state.Sink) { func (l *loadavgData) afterLoad() {} +// +checklocksignore func (l *loadavgData) StateLoad(stateSourceObject state.Source) { stateSourceObject.Load(0, &l.dynamicBytesFileSetAttr) } @@ -1722,6 +1836,7 @@ func (m *meminfoData) StateFields() []string { func (m *meminfoData) beforeSave() {} +// +checklocksignore func (m *meminfoData) StateSave(stateSinkObject state.Sink) { m.beforeSave() stateSinkObject.Save(0, &m.dynamicBytesFileSetAttr) @@ -1729,6 +1844,7 @@ func (m *meminfoData) StateSave(stateSinkObject state.Sink) { func (m *meminfoData) afterLoad() {} +// +checklocksignore func (m *meminfoData) StateLoad(stateSourceObject state.Source) { stateSourceObject.Load(0, &m.dynamicBytesFileSetAttr) } @@ -1745,6 +1861,7 @@ func (u *uptimeData) StateFields() []string { func (u *uptimeData) beforeSave() {} +// +checklocksignore func (u *uptimeData) StateSave(stateSinkObject state.Sink) { u.beforeSave() stateSinkObject.Save(0, &u.dynamicBytesFileSetAttr) @@ -1752,6 +1869,7 @@ func (u *uptimeData) StateSave(stateSinkObject state.Sink) { func (u *uptimeData) afterLoad() {} +// +checklocksignore func (u *uptimeData) StateLoad(stateSourceObject state.Source) { stateSourceObject.Load(0, &u.dynamicBytesFileSetAttr) } @@ -1768,6 +1886,7 @@ func (v *versionData) StateFields() []string { func (v *versionData) beforeSave() {} +// +checklocksignore func (v *versionData) StateSave(stateSinkObject state.Sink) { v.beforeSave() stateSinkObject.Save(0, &v.dynamicBytesFileSetAttr) @@ -1775,6 +1894,7 @@ func (v *versionData) StateSave(stateSinkObject state.Sink) { func (v *versionData) afterLoad() {} +// +checklocksignore func (v *versionData) StateLoad(stateSourceObject state.Source) { stateSourceObject.Load(0, &v.dynamicBytesFileSetAttr) } @@ -1791,6 +1911,7 @@ func (d *filesystemsData) StateFields() []string { func (d *filesystemsData) beforeSave() {} +// +checklocksignore func (d *filesystemsData) StateSave(stateSinkObject state.Sink) { d.beforeSave() stateSinkObject.Save(0, &d.DynamicBytesFile) @@ -1798,6 +1919,7 @@ func (d *filesystemsData) StateSave(stateSinkObject state.Sink) { func (d *filesystemsData) afterLoad() {} +// +checklocksignore func (d *filesystemsData) StateLoad(stateSourceObject state.Source) { stateSourceObject.Load(0, &d.DynamicBytesFile) } @@ -1814,11 +1936,13 @@ func (r *tasksInodeRefs) StateFields() []string { func (r *tasksInodeRefs) beforeSave() {} +// +checklocksignore func (r *tasksInodeRefs) StateSave(stateSinkObject state.Sink) { r.beforeSave() stateSinkObject.Save(0, &r.refCount) } +// +checklocksignore func (r *tasksInodeRefs) StateLoad(stateSourceObject state.Source) { stateSourceObject.Load(0, &r.refCount) stateSourceObject.AfterLoad(r.afterLoad) @@ -1845,6 +1969,7 @@ func (d *mmapMinAddrData) StateFields() []string { func (d *mmapMinAddrData) beforeSave() {} +// +checklocksignore func (d *mmapMinAddrData) StateSave(stateSinkObject state.Sink) { d.beforeSave() stateSinkObject.Save(0, &d.DynamicBytesFile) @@ -1853,6 +1978,7 @@ func (d *mmapMinAddrData) StateSave(stateSinkObject state.Sink) { func (d *mmapMinAddrData) afterLoad() {} +// +checklocksignore func (d *mmapMinAddrData) StateLoad(stateSourceObject state.Source) { stateSourceObject.Load(0, &d.DynamicBytesFile) stateSourceObject.Load(1, &d.k) @@ -1870,6 +1996,7 @@ func (h *hostnameData) StateFields() []string { func (h *hostnameData) beforeSave() {} +// +checklocksignore func (h *hostnameData) StateSave(stateSinkObject state.Sink) { h.beforeSave() stateSinkObject.Save(0, &h.DynamicBytesFile) @@ -1877,6 +2004,7 @@ func (h *hostnameData) StateSave(stateSinkObject state.Sink) { func (h *hostnameData) afterLoad() {} +// +checklocksignore func (h *hostnameData) StateLoad(stateSourceObject state.Source) { stateSourceObject.Load(0, &h.DynamicBytesFile) } @@ -1895,6 +2023,7 @@ func (d *tcpSackData) StateFields() []string { func (d *tcpSackData) beforeSave() {} +// +checklocksignore func (d *tcpSackData) StateSave(stateSinkObject state.Sink) { d.beforeSave() stateSinkObject.Save(0, &d.DynamicBytesFile) @@ -1904,6 +2033,7 @@ func (d *tcpSackData) StateSave(stateSinkObject state.Sink) { func (d *tcpSackData) afterLoad() {} +// +checklocksignore func (d *tcpSackData) StateLoad(stateSourceObject state.Source) { stateSourceObject.Load(0, &d.DynamicBytesFile) stateSourceObject.LoadWait(1, &d.stack) @@ -1923,6 +2053,7 @@ func (d *tcpRecoveryData) StateFields() []string { func (d *tcpRecoveryData) beforeSave() {} +// +checklocksignore func (d *tcpRecoveryData) StateSave(stateSinkObject state.Sink) { d.beforeSave() stateSinkObject.Save(0, &d.DynamicBytesFile) @@ -1931,6 +2062,7 @@ func (d *tcpRecoveryData) StateSave(stateSinkObject state.Sink) { func (d *tcpRecoveryData) afterLoad() {} +// +checklocksignore func (d *tcpRecoveryData) StateLoad(stateSourceObject state.Source) { stateSourceObject.Load(0, &d.DynamicBytesFile) stateSourceObject.LoadWait(1, &d.stack) @@ -1950,6 +2082,7 @@ func (d *tcpMemData) StateFields() []string { func (d *tcpMemData) beforeSave() {} +// +checklocksignore func (d *tcpMemData) StateSave(stateSinkObject state.Sink) { d.beforeSave() stateSinkObject.Save(0, &d.DynamicBytesFile) @@ -1959,6 +2092,7 @@ func (d *tcpMemData) StateSave(stateSinkObject state.Sink) { func (d *tcpMemData) afterLoad() {} +// +checklocksignore func (d *tcpMemData) StateLoad(stateSourceObject state.Source) { stateSourceObject.Load(0, &d.DynamicBytesFile) stateSourceObject.Load(1, &d.dir) @@ -1979,6 +2113,7 @@ func (ipf *ipForwarding) StateFields() []string { func (ipf *ipForwarding) beforeSave() {} +// +checklocksignore func (ipf *ipForwarding) StateSave(stateSinkObject state.Sink) { ipf.beforeSave() stateSinkObject.Save(0, &ipf.DynamicBytesFile) @@ -1988,6 +2123,7 @@ func (ipf *ipForwarding) StateSave(stateSinkObject state.Sink) { func (ipf *ipForwarding) afterLoad() {} +// +checklocksignore func (ipf *ipForwarding) StateLoad(stateSourceObject state.Source) { stateSourceObject.Load(0, &ipf.DynamicBytesFile) stateSourceObject.LoadWait(1, &ipf.stack) @@ -2009,6 +2145,7 @@ func (pr *portRange) StateFields() []string { func (pr *portRange) beforeSave() {} +// +checklocksignore func (pr *portRange) StateSave(stateSinkObject state.Sink) { pr.beforeSave() stateSinkObject.Save(0, &pr.DynamicBytesFile) @@ -2019,6 +2156,7 @@ func (pr *portRange) StateSave(stateSinkObject state.Sink) { func (pr *portRange) afterLoad() {} +// +checklocksignore func (pr *portRange) StateLoad(stateSourceObject state.Source) { stateSourceObject.Load(0, &pr.DynamicBytesFile) stateSourceObject.LoadWait(1, &pr.stack) @@ -2039,6 +2177,7 @@ func (s *yamaPtraceScope) StateFields() []string { func (s *yamaPtraceScope) beforeSave() {} +// +checklocksignore func (s *yamaPtraceScope) StateSave(stateSinkObject state.Sink) { s.beforeSave() stateSinkObject.Save(0, &s.DynamicBytesFile) @@ -2047,6 +2186,7 @@ func (s *yamaPtraceScope) StateSave(stateSinkObject state.Sink) { func (s *yamaPtraceScope) afterLoad() {} +// +checklocksignore func (s *yamaPtraceScope) StateLoad(stateSourceObject state.Source) { stateSourceObject.Load(0, &s.DynamicBytesFile) stateSourceObject.Load(1, &s.level) diff --git a/pkg/sentry/fsimpl/signalfd/signalfd_state_autogen.go b/pkg/sentry/fsimpl/signalfd/signalfd_state_autogen.go index b3596a886..3bf27c6a6 100644 --- a/pkg/sentry/fsimpl/signalfd/signalfd_state_autogen.go +++ b/pkg/sentry/fsimpl/signalfd/signalfd_state_autogen.go @@ -23,6 +23,7 @@ func (sfd *SignalFileDescription) StateFields() []string { func (sfd *SignalFileDescription) beforeSave() {} +// +checklocksignore func (sfd *SignalFileDescription) StateSave(stateSinkObject state.Sink) { sfd.beforeSave() stateSinkObject.Save(0, &sfd.vfsfd) @@ -35,6 +36,7 @@ func (sfd *SignalFileDescription) StateSave(stateSinkObject state.Sink) { func (sfd *SignalFileDescription) afterLoad() {} +// +checklocksignore func (sfd *SignalFileDescription) StateLoad(stateSourceObject state.Source) { stateSourceObject.Load(0, &sfd.vfsfd) stateSourceObject.Load(1, &sfd.FileDescriptionDefaultImpl) diff --git a/pkg/sentry/fsimpl/sockfs/sockfs_state_autogen.go b/pkg/sentry/fsimpl/sockfs/sockfs_state_autogen.go index 6a6607555..cf6eddef2 100644 --- a/pkg/sentry/fsimpl/sockfs/sockfs_state_autogen.go +++ b/pkg/sentry/fsimpl/sockfs/sockfs_state_autogen.go @@ -16,12 +16,14 @@ func (fsType *filesystemType) StateFields() []string { func (fsType *filesystemType) beforeSave() {} +// +checklocksignore func (fsType *filesystemType) StateSave(stateSinkObject state.Sink) { fsType.beforeSave() } func (fsType *filesystemType) afterLoad() {} +// +checklocksignore func (fsType *filesystemType) StateLoad(stateSourceObject state.Source) { } @@ -38,6 +40,7 @@ func (fs *filesystem) StateFields() []string { func (fs *filesystem) beforeSave() {} +// +checklocksignore func (fs *filesystem) StateSave(stateSinkObject state.Sink) { fs.beforeSave() stateSinkObject.Save(0, &fs.Filesystem) @@ -46,6 +49,7 @@ func (fs *filesystem) StateSave(stateSinkObject state.Sink) { func (fs *filesystem) afterLoad() {} +// +checklocksignore func (fs *filesystem) StateLoad(stateSourceObject state.Source) { stateSourceObject.Load(0, &fs.Filesystem) stateSourceObject.Load(1, &fs.devMinor) @@ -66,6 +70,7 @@ func (i *inode) StateFields() []string { func (i *inode) beforeSave() {} +// +checklocksignore func (i *inode) StateSave(stateSinkObject state.Sink) { i.beforeSave() stateSinkObject.Save(0, &i.InodeAttrs) @@ -76,6 +81,7 @@ func (i *inode) StateSave(stateSinkObject state.Sink) { func (i *inode) afterLoad() {} +// +checklocksignore func (i *inode) StateLoad(stateSourceObject state.Source) { stateSourceObject.Load(0, &i.InodeAttrs) stateSourceObject.Load(1, &i.InodeNoopRefCount) diff --git a/pkg/sentry/fsimpl/sys/sys_state_autogen.go b/pkg/sentry/fsimpl/sys/sys_state_autogen.go index 13cbe9a90..c5adf7db3 100644 --- a/pkg/sentry/fsimpl/sys/sys_state_autogen.go +++ b/pkg/sentry/fsimpl/sys/sys_state_autogen.go @@ -18,11 +18,13 @@ func (r *dirRefs) StateFields() []string { func (r *dirRefs) beforeSave() {} +// +checklocksignore func (r *dirRefs) StateSave(stateSinkObject state.Sink) { r.beforeSave() stateSinkObject.Save(0, &r.refCount) } +// +checklocksignore func (r *dirRefs) StateLoad(stateSourceObject state.Source) { stateSourceObject.Load(0, &r.refCount) stateSourceObject.AfterLoad(r.afterLoad) @@ -44,6 +46,7 @@ func (i *kcovInode) StateFields() []string { func (i *kcovInode) beforeSave() {} +// +checklocksignore func (i *kcovInode) StateSave(stateSinkObject state.Sink) { i.beforeSave() stateSinkObject.Save(0, &i.InodeAttrs) @@ -55,6 +58,7 @@ func (i *kcovInode) StateSave(stateSinkObject state.Sink) { func (i *kcovInode) afterLoad() {} +// +checklocksignore func (i *kcovInode) StateLoad(stateSourceObject state.Source) { stateSourceObject.Load(0, &i.InodeAttrs) stateSourceObject.Load(1, &i.InodeNoopRefCount) @@ -79,6 +83,7 @@ func (fd *kcovFD) StateFields() []string { func (fd *kcovFD) beforeSave() {} +// +checklocksignore func (fd *kcovFD) StateSave(stateSinkObject state.Sink) { fd.beforeSave() stateSinkObject.Save(0, &fd.FileDescriptionDefaultImpl) @@ -90,6 +95,7 @@ func (fd *kcovFD) StateSave(stateSinkObject state.Sink) { func (fd *kcovFD) afterLoad() {} +// +checklocksignore func (fd *kcovFD) StateLoad(stateSourceObject state.Source) { stateSourceObject.Load(0, &fd.FileDescriptionDefaultImpl) stateSourceObject.Load(1, &fd.NoLockFD) @@ -108,12 +114,14 @@ func (fsType *FilesystemType) StateFields() []string { func (fsType *FilesystemType) beforeSave() {} +// +checklocksignore func (fsType *FilesystemType) StateSave(stateSinkObject state.Sink) { fsType.beforeSave() } func (fsType *FilesystemType) afterLoad() {} +// +checklocksignore func (fsType *FilesystemType) StateLoad(stateSourceObject state.Source) { } @@ -130,6 +138,7 @@ func (fs *filesystem) StateFields() []string { func (fs *filesystem) beforeSave() {} +// +checklocksignore func (fs *filesystem) StateSave(stateSinkObject state.Sink) { fs.beforeSave() stateSinkObject.Save(0, &fs.Filesystem) @@ -138,6 +147,7 @@ func (fs *filesystem) StateSave(stateSinkObject state.Sink) { func (fs *filesystem) afterLoad() {} +// +checklocksignore func (fs *filesystem) StateLoad(stateSourceObject state.Source) { stateSourceObject.Load(0, &fs.Filesystem) stateSourceObject.Load(1, &fs.devMinor) @@ -162,6 +172,7 @@ func (d *dir) StateFields() []string { func (d *dir) beforeSave() {} +// +checklocksignore func (d *dir) StateSave(stateSinkObject state.Sink) { d.beforeSave() stateSinkObject.Save(0, &d.dirRefs) @@ -176,6 +187,7 @@ func (d *dir) StateSave(stateSinkObject state.Sink) { func (d *dir) afterLoad() {} +// +checklocksignore func (d *dir) StateLoad(stateSourceObject state.Source) { stateSourceObject.Load(0, &d.dirRefs) stateSourceObject.Load(1, &d.InodeAlwaysValid) @@ -201,6 +213,7 @@ func (c *cpuFile) StateFields() []string { func (c *cpuFile) beforeSave() {} +// +checklocksignore func (c *cpuFile) StateSave(stateSinkObject state.Sink) { c.beforeSave() stateSinkObject.Save(0, &c.implStatFS) @@ -210,6 +223,7 @@ func (c *cpuFile) StateSave(stateSinkObject state.Sink) { func (c *cpuFile) afterLoad() {} +// +checklocksignore func (c *cpuFile) StateLoad(stateSourceObject state.Source) { stateSourceObject.Load(0, &c.implStatFS) stateSourceObject.Load(1, &c.DynamicBytesFile) @@ -226,12 +240,14 @@ func (i *implStatFS) StateFields() []string { func (i *implStatFS) beforeSave() {} +// +checklocksignore func (i *implStatFS) StateSave(stateSinkObject state.Sink) { i.beforeSave() } func (i *implStatFS) afterLoad() {} +// +checklocksignore func (i *implStatFS) StateLoad(stateSourceObject state.Source) { } diff --git a/pkg/sentry/fsimpl/timerfd/timerfd_state_autogen.go b/pkg/sentry/fsimpl/timerfd/timerfd_state_autogen.go index d3c01e9e7..12970f25c 100644 --- a/pkg/sentry/fsimpl/timerfd/timerfd_state_autogen.go +++ b/pkg/sentry/fsimpl/timerfd/timerfd_state_autogen.go @@ -24,6 +24,7 @@ func (tfd *TimerFileDescription) StateFields() []string { func (tfd *TimerFileDescription) beforeSave() {} +// +checklocksignore func (tfd *TimerFileDescription) StateSave(stateSinkObject state.Sink) { tfd.beforeSave() stateSinkObject.Save(0, &tfd.vfsfd) @@ -37,6 +38,7 @@ func (tfd *TimerFileDescription) StateSave(stateSinkObject state.Sink) { func (tfd *TimerFileDescription) afterLoad() {} +// +checklocksignore func (tfd *TimerFileDescription) StateLoad(stateSourceObject state.Source) { stateSourceObject.Load(0, &tfd.vfsfd) stateSourceObject.Load(1, &tfd.FileDescriptionDefaultImpl) diff --git a/pkg/sentry/fsimpl/tmpfs/tmpfs_state_autogen.go b/pkg/sentry/fsimpl/tmpfs/tmpfs_state_autogen.go index bd0b0bf97..6d9f09eef 100644 --- a/pkg/sentry/fsimpl/tmpfs/tmpfs_state_autogen.go +++ b/pkg/sentry/fsimpl/tmpfs/tmpfs_state_autogen.go @@ -19,6 +19,7 @@ func (l *dentryList) StateFields() []string { func (l *dentryList) beforeSave() {} +// +checklocksignore func (l *dentryList) StateSave(stateSinkObject state.Sink) { l.beforeSave() stateSinkObject.Save(0, &l.head) @@ -27,6 +28,7 @@ func (l *dentryList) StateSave(stateSinkObject state.Sink) { func (l *dentryList) afterLoad() {} +// +checklocksignore func (l *dentryList) StateLoad(stateSourceObject state.Source) { stateSourceObject.Load(0, &l.head) stateSourceObject.Load(1, &l.tail) @@ -45,6 +47,7 @@ func (e *dentryEntry) StateFields() []string { func (e *dentryEntry) beforeSave() {} +// +checklocksignore func (e *dentryEntry) StateSave(stateSinkObject state.Sink) { e.beforeSave() stateSinkObject.Save(0, &e.next) @@ -53,6 +56,7 @@ func (e *dentryEntry) StateSave(stateSinkObject state.Sink) { func (e *dentryEntry) afterLoad() {} +// +checklocksignore func (e *dentryEntry) StateLoad(stateSourceObject state.Source) { stateSourceObject.Load(0, &e.next) stateSourceObject.Load(1, &e.prev) @@ -73,6 +77,7 @@ func (d *deviceFile) StateFields() []string { func (d *deviceFile) beforeSave() {} +// +checklocksignore func (d *deviceFile) StateSave(stateSinkObject state.Sink) { d.beforeSave() stateSinkObject.Save(0, &d.inode) @@ -83,6 +88,7 @@ func (d *deviceFile) StateSave(stateSinkObject state.Sink) { func (d *deviceFile) afterLoad() {} +// +checklocksignore func (d *deviceFile) StateLoad(stateSourceObject state.Source) { stateSourceObject.Load(0, &d.inode) stateSourceObject.Load(1, &d.kind) @@ -106,6 +112,7 @@ func (dir *directory) StateFields() []string { func (dir *directory) beforeSave() {} +// +checklocksignore func (dir *directory) StateSave(stateSinkObject state.Sink) { dir.beforeSave() stateSinkObject.Save(0, &dir.dentry) @@ -117,6 +124,7 @@ func (dir *directory) StateSave(stateSinkObject state.Sink) { func (dir *directory) afterLoad() {} +// +checklocksignore func (dir *directory) StateLoad(stateSourceObject state.Source) { stateSourceObject.Load(0, &dir.dentry) stateSourceObject.Load(1, &dir.inode) @@ -140,6 +148,7 @@ func (fd *directoryFD) StateFields() []string { func (fd *directoryFD) beforeSave() {} +// +checklocksignore func (fd *directoryFD) StateSave(stateSinkObject state.Sink) { fd.beforeSave() stateSinkObject.Save(0, &fd.fileDescription) @@ -150,6 +159,7 @@ func (fd *directoryFD) StateSave(stateSinkObject state.Sink) { func (fd *directoryFD) afterLoad() {} +// +checklocksignore func (fd *directoryFD) StateLoad(stateSourceObject state.Source) { stateSourceObject.Load(0, &fd.fileDescription) stateSourceObject.Load(1, &fd.DirectoryFileDescriptionDefaultImpl) @@ -169,11 +179,13 @@ func (r *inodeRefs) StateFields() []string { func (r *inodeRefs) beforeSave() {} +// +checklocksignore func (r *inodeRefs) StateSave(stateSinkObject state.Sink) { r.beforeSave() stateSinkObject.Save(0, &r.refCount) } +// +checklocksignore func (r *inodeRefs) StateLoad(stateSourceObject state.Source) { stateSourceObject.Load(0, &r.refCount) stateSourceObject.AfterLoad(r.afterLoad) @@ -192,6 +204,7 @@ func (n *namedPipe) StateFields() []string { func (n *namedPipe) beforeSave() {} +// +checklocksignore func (n *namedPipe) StateSave(stateSinkObject state.Sink) { n.beforeSave() stateSinkObject.Save(0, &n.inode) @@ -200,6 +213,7 @@ func (n *namedPipe) StateSave(stateSinkObject state.Sink) { func (n *namedPipe) afterLoad() {} +// +checklocksignore func (n *namedPipe) StateLoad(stateSourceObject state.Source) { stateSourceObject.Load(0, &n.inode) stateSourceObject.Load(1, &n.pipe) @@ -223,6 +237,7 @@ func (rf *regularFile) StateFields() []string { func (rf *regularFile) beforeSave() {} +// +checklocksignore func (rf *regularFile) StateSave(stateSinkObject state.Sink) { rf.beforeSave() stateSinkObject.Save(0, &rf.inode) @@ -234,6 +249,7 @@ func (rf *regularFile) StateSave(stateSinkObject state.Sink) { stateSinkObject.Save(6, &rf.size) } +// +checklocksignore func (rf *regularFile) StateLoad(stateSourceObject state.Source) { stateSourceObject.Load(0, &rf.inode) stateSourceObject.Load(1, &rf.memoryUsageKind) @@ -258,6 +274,7 @@ func (fd *regularFileFD) StateFields() []string { func (fd *regularFileFD) beforeSave() {} +// +checklocksignore func (fd *regularFileFD) StateSave(stateSinkObject state.Sink) { fd.beforeSave() stateSinkObject.Save(0, &fd.fileDescription) @@ -266,6 +283,7 @@ func (fd *regularFileFD) StateSave(stateSinkObject state.Sink) { func (fd *regularFileFD) afterLoad() {} +// +checklocksignore func (fd *regularFileFD) StateLoad(stateSourceObject state.Source) { stateSourceObject.Load(0, &fd.fileDescription) stateSourceObject.Load(1, &fd.off) @@ -284,6 +302,7 @@ func (s *socketFile) StateFields() []string { func (s *socketFile) beforeSave() {} +// +checklocksignore func (s *socketFile) StateSave(stateSinkObject state.Sink) { s.beforeSave() stateSinkObject.Save(0, &s.inode) @@ -292,6 +311,7 @@ func (s *socketFile) StateSave(stateSinkObject state.Sink) { func (s *socketFile) afterLoad() {} +// +checklocksignore func (s *socketFile) StateLoad(stateSourceObject state.Source) { stateSourceObject.Load(0, &s.inode) stateSourceObject.Load(1, &s.ep) @@ -310,6 +330,7 @@ func (s *symlink) StateFields() []string { func (s *symlink) beforeSave() {} +// +checklocksignore func (s *symlink) StateSave(stateSinkObject state.Sink) { s.beforeSave() stateSinkObject.Save(0, &s.inode) @@ -318,6 +339,7 @@ func (s *symlink) StateSave(stateSinkObject state.Sink) { func (s *symlink) afterLoad() {} +// +checklocksignore func (s *symlink) StateLoad(stateSourceObject state.Source) { stateSourceObject.Load(0, &s.inode) stateSourceObject.Load(1, &s.target) @@ -333,12 +355,14 @@ func (fstype *FilesystemType) StateFields() []string { func (fstype *FilesystemType) beforeSave() {} +// +checklocksignore func (fstype *FilesystemType) StateSave(stateSinkObject state.Sink) { fstype.beforeSave() } func (fstype *FilesystemType) afterLoad() {} +// +checklocksignore func (fstype *FilesystemType) StateLoad(stateSourceObject state.Source) { } @@ -360,6 +384,7 @@ func (fs *filesystem) StateFields() []string { func (fs *filesystem) beforeSave() {} +// +checklocksignore func (fs *filesystem) StateSave(stateSinkObject state.Sink) { fs.beforeSave() stateSinkObject.Save(0, &fs.vfsfs) @@ -373,6 +398,7 @@ func (fs *filesystem) StateSave(stateSinkObject state.Sink) { func (fs *filesystem) afterLoad() {} +// +checklocksignore func (fs *filesystem) StateLoad(stateSourceObject state.Source) { stateSourceObject.Load(0, &fs.vfsfs) stateSourceObject.Load(1, &fs.mfp) @@ -397,6 +423,7 @@ func (f *FilesystemOpts) StateFields() []string { func (f *FilesystemOpts) beforeSave() {} +// +checklocksignore func (f *FilesystemOpts) StateSave(stateSinkObject state.Sink) { f.beforeSave() stateSinkObject.Save(0, &f.RootFileType) @@ -406,6 +433,7 @@ func (f *FilesystemOpts) StateSave(stateSinkObject state.Sink) { func (f *FilesystemOpts) afterLoad() {} +// +checklocksignore func (f *FilesystemOpts) StateLoad(stateSourceObject state.Source) { stateSourceObject.Load(0, &f.RootFileType) stateSourceObject.Load(1, &f.RootSymlinkTarget) @@ -428,6 +456,7 @@ func (d *dentry) StateFields() []string { func (d *dentry) beforeSave() {} +// +checklocksignore func (d *dentry) StateSave(stateSinkObject state.Sink) { d.beforeSave() stateSinkObject.Save(0, &d.vfsd) @@ -439,6 +468,7 @@ func (d *dentry) StateSave(stateSinkObject state.Sink) { func (d *dentry) afterLoad() {} +// +checklocksignore func (d *dentry) StateLoad(stateSourceObject state.Source) { stateSourceObject.Load(0, &d.vfsd) stateSourceObject.Load(1, &d.parent) @@ -472,6 +502,7 @@ func (i *inode) StateFields() []string { func (i *inode) beforeSave() {} +// +checklocksignore func (i *inode) StateSave(stateSinkObject state.Sink) { i.beforeSave() stateSinkObject.Save(0, &i.fs) @@ -492,6 +523,7 @@ func (i *inode) StateSave(stateSinkObject state.Sink) { func (i *inode) afterLoad() {} +// +checklocksignore func (i *inode) StateLoad(stateSourceObject state.Source) { stateSourceObject.Load(0, &i.fs) stateSourceObject.Load(1, &i.refs) @@ -523,6 +555,7 @@ func (fd *fileDescription) StateFields() []string { func (fd *fileDescription) beforeSave() {} +// +checklocksignore func (fd *fileDescription) StateSave(stateSinkObject state.Sink) { fd.beforeSave() stateSinkObject.Save(0, &fd.vfsfd) @@ -532,6 +565,7 @@ func (fd *fileDescription) StateSave(stateSinkObject state.Sink) { func (fd *fileDescription) afterLoad() {} +// +checklocksignore func (fd *fileDescription) StateLoad(stateSourceObject state.Source) { stateSourceObject.Load(0, &fd.vfsfd) stateSourceObject.Load(1, &fd.FileDescriptionDefaultImpl) |