func (tag *Tag) Clunk(fid *Fid) error { req := tag.reqAlloc() req.fid = fid err := ixp.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 := ixp.PackTclunk(tc, fid.Fid) if err != nil { return err } _, err = clnt.Rpc(tc) } clnt.fidpool.putId(fid.Fid) fid.walked = false fid.Fid = ixp.NOFID return }