mirror of
https://github.com/trapexit/mergerfs.git
synced 2026-10-26 19:01:56 -04:00
Auto-commit fuse_lowlevel.cpp
This commit is contained in:
parent
e18dbaaca1
commit
a87c33a352
1 changed files with 0 additions and 30 deletions
|
|
@ -647,36 +647,6 @@ fuse_reply_ioctl(fuse_req_t *req,
|
|||
return send_reply_iov(req, 0, iov, count);
|
||||
}
|
||||
|
||||
int
|
||||
fuse_reply_ioctl_iov(fuse_req_t *req,
|
||||
int result,
|
||||
const struct iovec *iov,
|
||||
int count)
|
||||
{
|
||||
struct iovec *padded_iov;
|
||||
struct fuse_ioctl_out arg = {};
|
||||
int res;
|
||||
|
||||
padded_iov = (iovec*)malloc((count + 2) * sizeof(struct iovec));
|
||||
if(padded_iov == NULL)
|
||||
return fuse_reply_err(req, ENOMEM);
|
||||
|
||||
arg.result = result;
|
||||
|
||||
if(fuse_cfg.debug)
|
||||
fuse_debug_ioctl_out(req->ctx.unique,&arg);
|
||||
|
||||
padded_iov[1].iov_base = &arg;
|
||||
padded_iov[1].iov_len = sizeof(arg);
|
||||
|
||||
memcpy(&padded_iov[2], iov, count * sizeof(struct iovec));
|
||||
|
||||
res = send_reply_iov(req, 0, padded_iov, count + 2);
|
||||
free(padded_iov);
|
||||
|
||||
return res;
|
||||
}
|
||||
|
||||
int
|
||||
fuse_reply_poll(fuse_req_t *req,
|
||||
unsigned revents)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue