// Modifies the data of the file associated with the Fid, or an Error. func (clnt *Clnt) Wstat(fid *Fid, dir *p.Dir) error { tc := clnt.NewFcall() err := p.PackTwstat(tc, fid.Fid, dir, clnt.Dotu) if err != nil { return err } _, err = clnt.Rpc(tc) return err }
func (tag *Tag) Wstat(fid *Fid, dir *p.Dir) error { req := tag.reqAlloc() req.fid = fid err := p.PackTwstat(req.Tc, fid.Fid, dir, tag.clnt.Dotu) if err != nil { return err } return tag.clnt.Rpcnb(req) }