Added Convert support for the internal ops.

geesefs-0-30-9
Aaron Jacobs 2015-07-24 10:30:46 +10:00
parent 296d9cbc62
commit b5f954ccfb
1 changed files with 18 additions and 0 deletions

View File

@ -376,6 +376,24 @@ func Convert(
io = to
co = &to.commonOp
case fusekernel.OpStatfs:
to := &InternalStatFSOp{}
io = to
co = &to.commonOp
case fusekernel.OpInterrupt:
in := (*fusekernel.InterruptIn)(m.Data())
if m.Len() < unsafe.Sizeof(*in) {
err = errors.New("Corrupted OpInterrupt")
return
}
to := &InternalInterruptOp{
FuseID: in.Unique,
}
io = to
co = &to.commonOp
default:
to := &unknownOp{
opCode: m.Hdr.Opcode,