Commit c9971434 authored by Aaron Jacobs's avatar Aaron Jacobs

Fixed a bug.

parent 82289ebd
...@@ -48,16 +48,18 @@ func kernelResponse( ...@@ -48,16 +48,18 @@ func kernelResponse(
msg = b.Bytes() msg = b.Bytes()
// Fill in the rest of the header. // Fill in the rest of the header, if a response is required.
h := b.OutHeader() if msg != nil {
h.Unique = fuseID h := b.OutHeader()
h.Len = uint32(len(msg)) h.Unique = fuseID
h.Len = uint32(len(msg))
}
return return
} }
// Like kernelResponse, but assumes the user replied with a nil error to the // Like kernelResponse, but assumes the user replied with a nil error to the
// op. // op. Returns a nil response if no response is required.
func kernelResponseForOp( func kernelResponseForOp(
op interface{}, op interface{},
protocol fusekernel.Protocol) (b buffer.OutMessage) { protocol fusekernel.Protocol) (b buffer.OutMessage) {
......
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