Skip to content

Commit

Permalink
fuse: clarify return parameter name in parseRequest
Browse files Browse the repository at this point in the history
Change-Id: I6aaec9f4948e05d77f59d74c2920cf835a40a012
  • Loading branch information
hanwen committed Nov 3, 2024
1 parent ce18045 commit c01ea73
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions fuse/request.go
Original file line number Diff line number Diff line change
Expand Up @@ -189,7 +189,7 @@ func (r *request) inData() unsafe.Pointer {
return unsafe.Pointer(&r.inputBuf[0])
}

func parseRequest(in []byte, kernelSettings *InitIn) (h *operationHandler, inSize, outSize, payloadSize int, errno Status) {
func parseRequest(in []byte, kernelSettings *InitIn) (h *operationHandler, inSize, outSize, outPayloadSize int, errno Status) {
inSize = int(unsafe.Sizeof(InHeader{}))
if len(in) < inSize {
errno = EIO
Expand Down Expand Up @@ -221,9 +221,9 @@ func parseRequest(in []byte, kernelSettings *InitIn) (h *operationHandler, inSiz

switch hdr.Opcode {
case _OP_READDIR, _OP_READDIRPLUS, _OP_READ:
payloadSize = int(((*ReadIn)(inData)).Size)
outPayloadSize = int(((*ReadIn)(inData)).Size)
case _OP_GETXATTR, _OP_LISTXATTR:
payloadSize = int(((*GetXAttrIn)(inData)).Size)
outPayloadSize = int(((*GetXAttrIn)(inData)).Size)
}

outSize = int(h.OutputSize)
Expand Down

0 comments on commit c01ea73

Please sign in to comment.