mirror of
https://github.com/trapexit/mergerfs.git
synced 2026-12-05 06:10:10 -05:00
Add support for file io passthrough
If using Linux 6.9 or above and enabled (passthrough=true) files opened or created will use the FUSE passthrough feature. If direct-io=true / cache.files=off it will override passthrough. If direct-io-allow-mmap is enabled only mmap will passthrough. HANDLE_KILLPRIV and V2 are enabled now by default to remove the kernel's need to issue getattr and getxattr requests. moveonenospc will not work when leveraging passthrough.
This commit is contained in:
parent
b21172c609
commit
07e7d76b7c
18 changed files with 1673 additions and 20 deletions
|
|
@ -667,6 +667,8 @@ int fuse_loop_mt(struct fuse *f);
|
|||
*/
|
||||
struct fuse_context *fuse_get_context(void);
|
||||
|
||||
int fuse_get_dev_fuse_fd(const struct fuse_context *);
|
||||
|
||||
/**
|
||||
* Check if the current request has already been interrupted
|
||||
*
|
||||
|
|
@ -779,6 +781,11 @@ void fuse_gc1();
|
|||
void fuse_gc();
|
||||
void fuse_invalidate_all_nodes();
|
||||
|
||||
int fuse_passthrough_open(const struct fuse_context *fc,
|
||||
const int fd);
|
||||
int fuse_passthrough_close(const struct fuse_context *fc,
|
||||
const int backing_id);
|
||||
|
||||
EXTERN_C_END
|
||||
|
||||
#endif /* _FUSE_H_ */
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue