Merge pull request #64 from giuseppe/write-use-splice-move

fuse-overlayfs: write uses SPLICE_MOVE|SPLICE_NONBLOCK
This commit is contained in:
Daniel J Walsh 2019-04-08 17:33:07 -04:00 committed by GitHub
commit 1b4227ce66
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

2
main.c
View File

@ -2603,7 +2603,7 @@ ovl_write_buf (fuse_req_t req, fuse_ino_t ino,
ino, out_buf.buf[0].size, (unsigned long) off, (int) fi->fh);
errno = 0;
res = fuse_buf_copy (&out_buf, in_buf, 0);
res = fuse_buf_copy (&out_buf, in_buf, FUSE_BUF_SPLICE_MOVE | FUSE_BUF_SPLICE_NONBLOCK);
if (res < 0)
fuse_reply_err (req, errno);
else