func (tag *Tag) Remove(fid *Fid) error { req := tag.reqAlloc() req.fid = fid err := p.PackTremove(req.Tc, fid.Fid) if err != nil { return err } return tag.clnt.Rpcnb(req) }
// Removes the file associated with the Fid. Returns nil if the // operation is successful. func (clnt *Clnt) Remove(fid *Fid) error { tc := clnt.NewFcall() err := p.PackTremove(tc, fid.Fid) if err != nil { return err } _, err = clnt.Rpc(tc) clnt.fidpool.putId(fid.Fid) fid.Fid = p.NOFID return err }