Handle RemoveRequest.

geesefs-0-30-9
Aaron Jacobs 2015-03-24 14:51:07 +11:00
parent fe76354f67
commit 505033377d
1 changed files with 15 additions and 1 deletions

View File

@ -78,7 +78,21 @@ func Convert(r bazilfuse.Request) (o Op) {
co = &to.commonOp
case *bazilfuse.RemoveRequest:
//TODO
if typed.Dir {
to := &RmDirOp{
Parent: InodeID(typed.Header.Node),
Name: typed.Name,
}
o = to
co = &to.commonOp
} else {
to := &UnlinkOp{
Parent: InodeID(typed.Header.Node),
Name: typed.Name,
}
o = to
co = &to.commonOp
}
case *bazilfuse.OpenRequest:
//TODO