Logo Search packages:      
Sourcecode: fuse version File versions

int fuse_reply_iov ( fuse_req_t  req,
const struct iovec *  iov,
int  count 
)

Reply with data vector

Possible requests: read, readdir, getxattr, listxattr

Parameters:
req request handle
iov the vector containing the data
count the size of vector
Returns:
zero for success, -errno for failure to send reply

Definition at line 193 of file fuse_lowlevel.c.

References fuse_reply_err(), and fuse_reply_iov().

Referenced by fuse_reply_iov().

{
      int res;
      struct iovec *padded_iov;

      padded_iov = malloc((count + 1) * sizeof(struct iovec));
      if (padded_iov == NULL)
            return fuse_reply_err(req, -ENOMEM);

      memcpy(padded_iov + 1, iov, count * sizeof(struct iovec));
      count++;

      res = send_reply_iov(req, 0, padded_iov, count);
      free(padded_iov);

      return res;
}


Generated by  Doxygen 1.6.0   Back to index