Fixed a bug.
parent
82289ebdd4
commit
c997143411
12
ops.go
12
ops.go
|
@ -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) {
|
||||||
|
|
Loading…
Reference in New Issue