mirror of
https://github.com/trapexit/mergerfs.git
synced 2026-11-25 01:16:30 -05:00
Rework fuse read to use same buffers as messages
This commit is contained in:
parent
4a647beec1
commit
373d331f39
9 changed files with 188 additions and 202 deletions
|
|
@ -482,10 +482,10 @@ struct fuse_operations
|
|||
*
|
||||
* Introduced in version 2.9
|
||||
*/
|
||||
int (*read_buf) (const fuse_file_info_t *ffi,
|
||||
struct fuse_bufvec **bufp,
|
||||
size_t size,
|
||||
off_t off);
|
||||
int (*read)(const fuse_file_info_t *ffi,
|
||||
char *buf,
|
||||
size_t size,
|
||||
off_t off);
|
||||
/**
|
||||
* Perform BSD file locking operation
|
||||
*
|
||||
|
|
|
|||
|
|
@ -1137,19 +1137,9 @@ int fuse_reply_write(fuse_req_t req, size_t count);
|
|||
*/
|
||||
int fuse_reply_buf(fuse_req_t req, const char *buf, size_t size);
|
||||
|
||||
/**
|
||||
* Reply with data copied/moved from buffer(s)
|
||||
*
|
||||
* Possible requests:
|
||||
* read, readdir, getxattr, listxattr
|
||||
*
|
||||
* @param req request handle
|
||||
* @param bufv buffer vector
|
||||
* @param flags flags controlling the copy
|
||||
* @return zero for success, -errno for failure to send reply
|
||||
*/
|
||||
int fuse_reply_data(fuse_req_t req, struct fuse_bufvec *bufv,
|
||||
enum fuse_buf_copy_flags flags);
|
||||
int fuse_reply_data(fuse_req_t req,
|
||||
char *buf,
|
||||
size_t bufsize);
|
||||
|
||||
/**
|
||||
* Reply with data vector
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue