Commit 9a7512aa authored by Aaron Jacobs's avatar Aaron Jacobs

Improved debug logging for unknownOp.

parent 5711e18b
......@@ -401,8 +401,8 @@ func convertInMessage(
default:
o = &unknownOp{
opCode: inMsg.Header().Opcode,
inode: fuseops.InodeID(inMsg.Header().Nodeid),
OpCode: inMsg.Header().Opcode,
Inode: fuseops.InodeID(inMsg.Header().Nodeid),
}
}
......
......@@ -50,6 +50,9 @@ func describeRequest(op interface{}) (s string) {
case *interruptOp:
addComponent("fuseid 0x%08x", typed.FuseID)
case *unknownOp:
addComponent("opcode %d", typed.OpCode)
case *fuseops.ReadFileOp:
addComponent("handle %d", typed.Handle)
addComponent("offset %d", typed.Offset)
......
......@@ -22,8 +22,8 @@ import (
// A sentinel used for unknown ops. The user is expected to respond with a
// non-nil error.
type unknownOp struct {
opCode uint32
inode fuseops.InodeID
OpCode uint32
Inode fuseops.InodeID
}
// Required in order to mount on OS X.
......
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