diff options
author | gVisor bot <gvisor-bot@google.com> | 2021-08-12 08:44:47 +0000 |
---|---|---|
committer | gVisor bot <gvisor-bot@google.com> | 2021-08-12 08:44:47 +0000 |
commit | 5bd8f886db24151734e03497661e5521d1dfcc48 (patch) | |
tree | db4948a593ba768c6b14796aa715ffd84473d0a2 /pkg/sentry/vfs | |
parent | 7e3845c246594cf53f846a6b3adf0b601368dd52 (diff) | |
parent | 3416a3db77bf80cc1100b7d206fe0b68d424d7c9 (diff) |
Merge release-20210726.0-57-g3416a3db7 (automated)
Diffstat (limited to 'pkg/sentry/vfs')
-rw-r--r-- | pkg/sentry/vfs/vfs_state_autogen.go | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/pkg/sentry/vfs/vfs_state_autogen.go b/pkg/sentry/vfs/vfs_state_autogen.go index 364adcc0f..a460f4055 100644 --- a/pkg/sentry/vfs/vfs_state_autogen.go +++ b/pkg/sentry/vfs/vfs_state_autogen.go @@ -654,7 +654,8 @@ func (fd *DynamicBytesFileDescriptionImpl) beforeSave() {} // +checklocksignore func (fd *DynamicBytesFileDescriptionImpl) StateSave(stateSinkObject state.Sink) { fd.beforeSave() - var bufValue []byte = fd.saveBuf() + var bufValue []byte + bufValue = fd.saveBuf() stateSinkObject.SaveValue(1, bufValue) stateSinkObject.Save(0, &fd.data) stateSinkObject.Save(2, &fd.off) @@ -1157,7 +1158,8 @@ func (mnt *Mount) beforeSave() {} // +checklocksignore func (mnt *Mount) StateSave(stateSinkObject state.Sink) { mnt.beforeSave() - var keyValue VirtualDentry = mnt.saveKey() + var keyValue VirtualDentry + keyValue = mnt.saveKey() stateSinkObject.SaveValue(5, keyValue) stateSinkObject.Save(0, &mnt.vfs) stateSinkObject.Save(1, &mnt.fs) @@ -1891,7 +1893,8 @@ func (vfs *VirtualFilesystem) beforeSave() {} // +checklocksignore func (vfs *VirtualFilesystem) StateSave(stateSinkObject state.Sink) { vfs.beforeSave() - var mountsValue []*Mount = vfs.saveMounts() + var mountsValue []*Mount + mountsValue = vfs.saveMounts() stateSinkObject.SaveValue(0, mountsValue) stateSinkObject.Save(1, &vfs.mountpoints) stateSinkObject.Save(2, &vfs.lastMountID) |