Logo Search packages:      
Sourcecode: fuse version File versions

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

Reply with attributes

Possible requests: getattr, setattr

Parameters:
req request handle
the attributes
attr_timeout validity timeout (in seconds) for the attributes
Returns:
zero for success, -errno for failure to send reply

Definition at line 348 of file fuse_lowlevel.c.

References fuse_reply_attr().

Referenced by fuse_reply_attr().

{
      struct fuse_attr_out 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, sizeof(arg));
}


Generated by  Doxygen 1.6.0   Back to index