Commit 9206e9af authored by Aaron Jacobs's avatar Aaron Jacobs

Refactored OpenFileOp.kernelResponse.

parent 738a1dad
......@@ -626,9 +626,11 @@ type OpenFileOp struct {
}
func (o *OpenFileOp) kernelResponse() (msg []byte) {
buf := fuseshim.NewBuffer(unsafe.Sizeof(fusekernel.OpenOut{}))
out := (*fusekernel.OpenOut)(buf.Alloc(unsafe.Sizeof(fusekernel.OpenOut{})))
out.Fh = uint64(o.Handle)
type kernelOut fusekernel.OpenOut
buf := fuseshim.NewBuffer(unsafe.Sizeof(kernelOut{}))
out := (*kernelOut)(buf.Alloc(unsafe.Sizeof(kernelOut{})))
kernelOut.Fh = uint64(o.Handle)
msg = buf
return
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment