Add flushonclose feature

This commit is contained in:
Antonio SJ Musumeci 2023-10-23 22:32:42 -05:00
parent 7d6c8e9333
commit 6aa6452d3e
11 changed files with 196 additions and 3 deletions

View file

@ -86,6 +86,8 @@ struct fuse_file_info_t
uint32_t parallel_direct_writes:1;
uint32_t noflush:1;
/** File handle. May be filled in by filesystem in open().
Available in all other file operations */
uint64_t fh;

View file

@ -275,6 +275,8 @@ fill_open(struct fuse_open_out *arg_,
arg_->open_flags |= FOPEN_CACHE_DIR;
if(ffi_->parallel_direct_writes)
arg_->open_flags |= FOPEN_PARALLEL_DIRECT_WRITES;
if(ffi_->noflush)
arg_->open_flags |= FOPEN_NOFLUSH;
}
int