mirror of
https://github.com/containers/fuse-overlayfs.git
synced 2025-09-10 07:44:54 -04:00
Merge pull request #64 from giuseppe/write-use-splice-move
fuse-overlayfs: write uses SPLICE_MOVE|SPLICE_NONBLOCK
This commit is contained in:
commit
1b4227ce66
2
main.c
2
main.c
@ -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);
|
ino, out_buf.buf[0].size, (unsigned long) off, (int) fi->fh);
|
||||||
|
|
||||||
errno = 0;
|
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)
|
if (res < 0)
|
||||||
fuse_reply_err (req, errno);
|
fuse_reply_err (req, errno);
|
||||||
else
|
else
|
||||||
|
Loading…
x
Reference in New Issue
Block a user