UnlinkOp
parent
f667900499
commit
d8e3e30f99
|
@ -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{
|
||||
|
|
Loading…
Reference in New Issue