Commit e4d3d0aa authored by Aaron Jacobs's avatar Aaron Jacobs

Implemented missing functions.

parent 73732d44
......@@ -49,12 +49,27 @@ type commonOp struct {
r bazilfuse.Request
}
func (o *commonOp) init(r bazilfuse.Request)
func (o *commonOp) init(r bazilfuse.Request) {
o.ctx = context.Background()
o.r = r
}
func (o *commonOp) Header() OpHeader
func (o *commonOp) Header() OpHeader {
bh := o.r.Hdr()
return OpHeader{
Uid: bh.Uid,
Gid: bh.Gid,
}
}
func (o *commonOp) Context() context.Context {
return o.ctx
}
func (o *commonOp) Respond(err error)
func (o *commonOp) Respond(err error) {
if err != nil {
panic("Expect non-nil here.")
}
o.r.RespondError(err)
}
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment