Esempio n. 1
0
func (tag *Tag) Wstat(fid *Fid, dir *go9p.Dir) error {
	req := tag.reqAlloc()
	req.fid = fid
	err := go9p.PackTwstat(req.Tc, fid.Fid, dir, tag.clnt.Dotu)
	if err != nil {
		return err
	}

	return tag.clnt.Rpcnb(req)
}
Esempio n. 2
0
// Modifies the data of the file associated with the Fid, or an Error.
func (clnt *Clnt) Wstat(fid *Fid, dir *go9p.Dir) error {
	tc := clnt.NewFcall()
	err := go9p.PackTwstat(tc, fid.Fid, dir, clnt.Dotu)
	if err != nil {
		return err
	}

	_, err = clnt.Rpc(tc)
	return err
}