summaryrefslogtreecommitdiffhomepage
path: root/pkg/sentry/fs/host
diff options
context:
space:
mode:
authorgVisor bot <gvisor-bot@google.com>2021-03-23 19:03:20 +0000
committergVisor bot <gvisor-bot@google.com>2021-03-23 19:03:20 +0000
commite48ad2ada0357cb8ee9185074aaff7ab44d84631 (patch)
treef8848b871cd5e3a0d07853083e024a231438085c /pkg/sentry/fs/host
parent0fea1c57d9bc63416cc366720b2f53139468352f (diff)
parentacb4c62885629d6d3ee977b93c27282abed0b33f (diff)
Merge release-20210315.0-15-gacb4c6288 (automated)
Diffstat (limited to 'pkg/sentry/fs/host')
-rw-r--r--pkg/sentry/fs/host/host_state_autogen.go14
1 files changed, 14 insertions, 0 deletions
diff --git a/pkg/sentry/fs/host/host_state_autogen.go b/pkg/sentry/fs/host/host_state_autogen.go
index baae8fffa..b06247919 100644
--- a/pkg/sentry/fs/host/host_state_autogen.go
+++ b/pkg/sentry/fs/host/host_state_autogen.go
@@ -17,12 +17,14 @@ func (d *descriptor) StateFields() []string {
}
}
+// +checklocksignore
func (d *descriptor) StateSave(stateSinkObject state.Sink) {
d.beforeSave()
stateSinkObject.Save(0, &d.origFD)
stateSinkObject.Save(1, &d.wouldBlock)
}
+// +checklocksignore
func (d *descriptor) StateLoad(stateSourceObject state.Source) {
stateSourceObject.Load(0, &d.origFD)
stateSourceObject.Load(1, &d.wouldBlock)
@@ -42,6 +44,7 @@ func (f *fileOperations) StateFields() []string {
func (f *fileOperations) beforeSave() {}
+// +checklocksignore
func (f *fileOperations) StateSave(stateSinkObject state.Sink) {
f.beforeSave()
stateSinkObject.Save(0, &f.iops)
@@ -50,6 +53,7 @@ func (f *fileOperations) StateSave(stateSinkObject state.Sink) {
func (f *fileOperations) afterLoad() {}
+// +checklocksignore
func (f *fileOperations) StateLoad(stateSourceObject state.Source) {
stateSourceObject.LoadWait(0, &f.iops)
stateSourceObject.Load(1, &f.dirCursor)
@@ -65,12 +69,14 @@ func (f *filesystem) StateFields() []string {
func (f *filesystem) beforeSave() {}
+// +checklocksignore
func (f *filesystem) StateSave(stateSinkObject state.Sink) {
f.beforeSave()
}
func (f *filesystem) afterLoad() {}
+// +checklocksignore
func (f *filesystem) StateLoad(stateSourceObject state.Source) {
}
@@ -87,6 +93,7 @@ func (i *inodeOperations) StateFields() []string {
func (i *inodeOperations) beforeSave() {}
+// +checklocksignore
func (i *inodeOperations) StateSave(stateSinkObject state.Sink) {
i.beforeSave()
stateSinkObject.Save(0, &i.fileState)
@@ -95,6 +102,7 @@ func (i *inodeOperations) StateSave(stateSinkObject state.Sink) {
func (i *inodeOperations) afterLoad() {}
+// +checklocksignore
func (i *inodeOperations) StateLoad(stateSourceObject state.Source) {
stateSourceObject.LoadWait(0, &i.fileState)
stateSourceObject.Load(1, &i.cachingInodeOps)
@@ -114,6 +122,7 @@ func (i *inodeFileState) StateFields() []string {
func (i *inodeFileState) beforeSave() {}
+// +checklocksignore
func (i *inodeFileState) StateSave(stateSinkObject state.Sink) {
i.beforeSave()
if !state.IsZeroValue(&i.queue) {
@@ -124,6 +133,7 @@ func (i *inodeFileState) StateSave(stateSinkObject state.Sink) {
stateSinkObject.Save(2, &i.savedUAttr)
}
+// +checklocksignore
func (i *inodeFileState) StateLoad(stateSourceObject state.Source) {
stateSourceObject.LoadWait(0, &i.descriptor)
stateSourceObject.LoadWait(1, &i.sattr)
@@ -145,6 +155,7 @@ func (c *ConnectedEndpoint) StateFields() []string {
}
}
+// +checklocksignore
func (c *ConnectedEndpoint) StateSave(stateSinkObject state.Sink) {
c.beforeSave()
stateSinkObject.Save(0, &c.ref)
@@ -154,6 +165,7 @@ func (c *ConnectedEndpoint) StateSave(stateSinkObject state.Sink) {
stateSinkObject.Save(4, &c.stype)
}
+// +checklocksignore
func (c *ConnectedEndpoint) StateLoad(stateSourceObject state.Source) {
stateSourceObject.Load(0, &c.ref)
stateSourceObject.Load(1, &c.queue)
@@ -178,6 +190,7 @@ func (t *TTYFileOperations) StateFields() []string {
func (t *TTYFileOperations) beforeSave() {}
+// +checklocksignore
func (t *TTYFileOperations) StateSave(stateSinkObject state.Sink) {
t.beforeSave()
stateSinkObject.Save(0, &t.fileOperations)
@@ -188,6 +201,7 @@ func (t *TTYFileOperations) StateSave(stateSinkObject state.Sink) {
func (t *TTYFileOperations) afterLoad() {}
+// +checklocksignore
func (t *TTYFileOperations) StateLoad(stateSourceObject state.Source) {
stateSourceObject.Load(0, &t.fileOperations)
stateSourceObject.Load(1, &t.session)