summaryrefslogtreecommitdiffhomepage
path: root/pkg/sentry/fsimpl/fuse/init.go
diff options
context:
space:
mode:
authorCraig Chi <craigchi@google.com>2020-09-02 13:30:56 -0700
committerAndrei Vagin <avagin@gmail.com>2020-09-16 12:19:30 -0700
commit1d8029022e8ca45e177e36405506d42874f125e9 (patch)
treebd3c1fc756130af80f5fd73775c05c3b641225ef /pkg/sentry/fsimpl/fuse/init.go
parentcb9a2a1ad4f568a21382e949a592b621c11b5a2c (diff)
fuse: remove unused marshalling functions
This commit removes unused marshalling functions in linux abi package and moves self-defined FUSEInitRes wrapper to fuse package. Updates #3707
Diffstat (limited to 'pkg/sentry/fsimpl/fuse/init.go')
-rw-r--r--pkg/sentry/fsimpl/fuse/init.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/pkg/sentry/fsimpl/fuse/init.go b/pkg/sentry/fsimpl/fuse/init.go
index 6384cbbdb..256b6fb65 100644
--- a/pkg/sentry/fsimpl/fuse/init.go
+++ b/pkg/sentry/fsimpl/fuse/init.go
@@ -76,12 +76,12 @@ func (conn *connection) InitRecv(res *Response, hasSysAdminCap bool) error {
return err
}
- initRes := linux.FUSEInitRes{Len: res.DataLen()}
+ initRes := fuseInitRes{initLen: res.DataLen()}
if err := res.UnmarshalPayload(&initRes); err != nil {
return err
}
- return conn.initProcessReply(&initRes.InitOut, hasSysAdminCap)
+ return conn.initProcessReply(&initRes.initOut, hasSysAdminCap)
}
// Process the FUSE_INIT reply from the FUSE server.