mirror of
https://github.com/trapexit/mergerfs.git
synced 2026-11-21 15:36:31 -05:00
add flush callback. closes #16
This commit is contained in:
parent
dd666079b6
commit
716453596a
3 changed files with 96 additions and 1 deletions
|
|
@ -40,6 +40,7 @@
|
|||
#include "create.hpp"
|
||||
#include "fallocate.hpp"
|
||||
#include "fgetattr.hpp"
|
||||
#include "flush.hpp"
|
||||
#include "fsync.hpp"
|
||||
#include "ftruncate.hpp"
|
||||
#include "getattr.hpp"
|
||||
|
|
@ -85,7 +86,7 @@ get_fuse_operations()
|
|||
ops.fallocate = mergerfs::fallocate::fallocate;
|
||||
ops.fgetattr = mergerfs::fgetattr::fgetattr;
|
||||
ops.flock = NULL;
|
||||
ops.flush = NULL; /* called on close() of fd */
|
||||
ops.flush = mergerfs::flush::flush;
|
||||
ops.fsync = mergerfs::fsync::fsync;
|
||||
ops.fsyncdir = NULL;
|
||||
ops.ftruncate = mergerfs::ftruncate::ftruncate;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue