Fixed up unknownOp.

geesefs-0-30-9
Aaron Jacobs 2015-07-27 14:37:59 +10:00
parent 7035b69b93
commit 125c36dba8
1 changed files with 11 additions and 1 deletions

12
ops.go
View File

@ -286,8 +286,18 @@ type unknownOp struct {
inode fuseops.InodeID
}
func (o *unknownOp) ShortDesc() string {
return fmt.Sprintf("<opcode %d>(inode=%d)", o.opCode, o.inode)
}
func (o *unknownOp) DebugString() string {
return o.ShortDesc()
}
func (o *unknownOp) kernelResponse() (b buffer.OutMessage) {
panic(fmt.Sprintf("Should never get here for unknown op: %s", o.ShortDesc()))
panic(fmt.Sprintf(
"Expected an error response for unknown op: %s",
o.ShortDesc()))
}
////////////////////////////////////////////////////////////////////////