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

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

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