diff options
author | gVisor bot <gvisor-bot@google.com> | 2021-01-26 21:26:00 +0000 |
---|---|---|
committer | gVisor bot <gvisor-bot@google.com> | 2021-01-26 21:26:00 +0000 |
commit | 7edc1ce12f25e579d7b6f8205f70b823ed050aed (patch) | |
tree | dee68721d0c332c0970bfde6ba5456dd934a305c /pkg/sentry/fs/gofer | |
parent | fcb89d2d2954a0a1c6d5c6087f1de3af9eff77af (diff) | |
parent | ce39f82985b95972c545c941be2133b607b4440c (diff) |
Merge release-20210112.0-96-gce39f8298 (automated)
Diffstat (limited to 'pkg/sentry/fs/gofer')
-rw-r--r-- | pkg/sentry/fs/gofer/inode_state.go | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/pkg/sentry/fs/gofer/inode_state.go b/pkg/sentry/fs/gofer/inode_state.go index a3402e343..141e3c27f 100644 --- a/pkg/sentry/fs/gofer/inode_state.go +++ b/pkg/sentry/fs/gofer/inode_state.go @@ -67,7 +67,9 @@ func (i *inodeFileState) beforeSave() { if i.sattr.Type == fs.RegularFile { uattr, err := i.unstableAttr(&dummyClockContext{context.Background()}) if err != nil { - panic(fs.ErrSaveRejection{fmt.Errorf("failed to get unstable atttribute of %s: %v", i.s.inodeMappings[i.sattr.InodeID], err)}) + panic(&fs.ErrSaveRejection{ + Err: fmt.Errorf("failed to get unstable atttribute of %s: %w", i.s.inodeMappings[i.sattr.InodeID], err), + }) } i.savedUAttr = &uattr } |