Defined RenameOp.

geesefs-0-30-9
Aaron Jacobs 2015-06-25 15:35:26 +10:00
parent 45ab98457f
commit feb41dddfa
1 changed files with 18 additions and 0 deletions

View File

@ -358,6 +358,24 @@ func (o *CreateSymlinkOp) toBazilfuseResponse() (bfResp interface{}) {
// Unlinking
////////////////////////////////////////////////////////////////////////
// TODO(jacobsa): Comments for struct and fields, in particular covering
// renames across mount points.
type RenameOp struct {
commonOp
// TODO(jacobsa): Comments.
OldParent InodeID
OldName string
// TODO(jacobsa): Comments.
NewParent InodeID
NewName string
}
func (o *RenameOp) toBazilfuseResponse() (bfResp interface{}) {
return
}
// Unlink a directory from its parent. Because directories cannot have a link
// count above one, this means the directory inode should be deleted as well
// once the kernel sends ForgetInodeOp.