Пример #1
0
// 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
}
Пример #2
0
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)
}