func (tag *Tag) Clunk(fid *Fid) error { req := tag.reqAlloc() req.fid = fid err := go9p.PackTclunk(req.Tc, fid.Fid) if err != nil { return err } return tag.clnt.Rpcnb(req) }
// Clunks a fid. Returns nil if successful. func (clnt *Clnt) Clunk(fid *Fid) (err error) { err = nil if fid.walked { tc := clnt.NewFcall() err := go9p.PackTclunk(tc, fid.Fid) if err != nil { return err } _, err = clnt.Rpc(tc) } clnt.fidpool.putId(fid.Fid) fid.walked = false fid.Fid = go9p.NOFID return }