Commit d8e3e30f authored by Aaron Jacobs's avatar Aaron Jacobs

UnlinkOp

parent f6679004
......@@ -204,6 +204,20 @@ func Convert(
io = to
co = &to.commonOp
case fusekernel.OpUnlink:
buf := m.Bytes()
n := len(buf)
if n == 0 || buf[n-1] != '\x00' {
goto corrupt
}
to := &UnlinkOp{
Parent: InodeID(m.Header().Node),
Name: string(buf[:n-1]),
}
io = to
co = &to.commonOp
case *fuseshim.RemoveRequest:
if typed.Dir {
to := &RmDirOp{
......
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