Logo Search packages:      
Sourcecode: fuse version File versions  Download package

int fuse_reply_attr ( fuse_req_t  req,
const struct stat *  attr,
double  attr_timeout 
)

Reply with attributes

Possible requests: getattr, setattr

Parameters:
reqrequest handle
attrthe attributes
attr_timeoutvalidity timeout (in seconds) for the attributes
Returns:
zero for success, -errno for failure to send reply

Definition at line 334 of file fuse_lowlevel.c.

References fuse_reply_attr(), and fuse_conn_info::proto_minor.

Referenced by fuse_reply_attr().

{
      struct fuse_attr_out arg;
      size_t size = req->f->conn.proto_minor < 9 ?
            FUSE_COMPAT_ATTR_OUT_SIZE : sizeof(arg);

      memset(&arg, 0, sizeof(arg));
      arg.attr_valid = calc_timeout_sec(attr_timeout);
      arg.attr_valid_nsec = calc_timeout_nsec(attr_timeout);
      convert_stat(attr, &arg.attr);

      return send_reply_ok(req, &arg, size);
}

Here is the call graph for this function:

Here is the caller graph for this function:


Generated by  Doxygen 1.6.0   Back to index