Added Convert support.

geesefs-0-30-9
Aaron Jacobs 2015-06-25 15:37:04 +10:00
parent feb41dddfa
commit b121025b48
1 changed files with 10 additions and 0 deletions

View File

@ -117,6 +117,16 @@ func Convert(
io = to
co = &to.commonOp
case *bazilfuse.RenameRequest:
to := &RenameOp{
OldParent: InodeID(typed.Header.Node),
OldName: typed.OldName,
NewParent: InodeID(typed.NewDir),
NewName: typed.OldName,
}
io = to
co = &to.commonOp
case *bazilfuse.RemoveRequest:
if typed.Dir {
to := &RmDirOp{