mirror of
https://github.com/trapexit/mergerfs.git
synced 2026-12-02 04:46:41 -05:00
checkpoint
This commit is contained in:
parent
be3499ee56
commit
ec46077fb5
46 changed files with 9443 additions and 15887 deletions
22
libfuse/include/fuse_chan.h
Normal file
22
libfuse/include/fuse_chan.h
Normal file
|
|
@ -0,0 +1,22 @@
|
|||
#pragma once
|
||||
|
||||
#include <stdint.h>
|
||||
#include <sys/uio.h>
|
||||
|
||||
#define FUSE_CHAN_SPLICE_READ (1<<0)
|
||||
#define FUSE_CHAN_SPLICE_WRITE (1<<1)
|
||||
|
||||
typedef struct fuse_chan_t fuse_chan_t;
|
||||
struct fuse_chan_t
|
||||
{
|
||||
void *buf;
|
||||
uint64_t bufsize;
|
||||
int32_t fd;
|
||||
int32_t splice_pipe[2];
|
||||
uint32_t flags;
|
||||
};
|
||||
|
||||
fuse_chan_t *fuse_chan_new(int32_t fd, uint32_t flags);
|
||||
void fuse_chan_destroy(fuse_chan_t *ch);
|
||||
int64_t fuse_chan_recv(fuse_chan_t *ch, char *buf, uint64_t size);
|
||||
int64_t fuse_chan_send(fuse_chan_t *ch, const struct iovec iov[], uint64_t count);
|
||||
Loading…
Add table
Add a link
Reference in a new issue