geesefs-0-30-9
Aaron Jacobs 2015-07-24 08:08:41 +10:00
parent f667900499
commit d8e3e30f99
1 changed files with 14 additions and 0 deletions

View File

@ -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{