More Respond methods.

geesefs-0-30-9
Aaron Jacobs 2015-03-24 15:02:27 +11:00
parent ccca7bbf35
commit 630d02e199
1 changed files with 9 additions and 3 deletions

View File

@ -154,7 +154,12 @@ func (o *SetInodeAttributesOp) Respond(err error) {
return
}
panic("TODO")
resp := bazilfuse.SetattrResponse{
Attr: convertAttributes(o.Inode, o.Attributes),
AttrValid: convertExpirationTime(o.AttributesExpiration),
}
o.r.(*bazilfuse.SetattrRequest).Respond(&resp)
}
// Forget an inode ID previously issued (e.g. by LookUpInode or MkDir). The
@ -174,7 +179,7 @@ func (o *ForgetInodeOp) Respond(err error) {
return
}
panic("TODO")
o.r.(*bazilfuse.ForgetRequest).Respond()
}
////////////////////////////////////////////////////////////////////////
@ -208,7 +213,8 @@ func (o *MkDirOp) Respond(err error) {
return
}
panic("TODO")
resp := bazilfuse.MkdirResponse{}
o.r.(*bazilfuse.MkdirRequest).Respond(&resp)
}
// Create a file inode and open it.