// Modifies the data of the file associated with the Fid, or an Error. func (clnt *Clnt) Wstat(fid *Fid, dir *ninep.Dir) error { tc := clnt.NewFcall() err := ninep.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 *ninep.Dir) error { req := tag.reqAlloc() req.fid = fid err := ninep.PackTwstat(req.Tc, fid.Fid, dir, tag.clnt.Dotu) if err != nil { return err } return tag.clnt.Rpcnb(req) }