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