Browse Source

func_create_ff.cpp

toml4
Antonio SJ Musumeci 9 months ago
parent
commit
789821bbac
  1. 6
      src/func_create_ff.cpp

6
src/func_create_ff.cpp

@ -31,7 +31,7 @@ namespace l
fuse_file_info_t *ffi_) fuse_file_info_t *ffi_)
{ {
int rv; int rv;
FileInfo *fi;
FileInfo *fi;
fs::info_t info; fs::info_t info;
for(auto &tier : branches_) for(auto &tier : branches_)
@ -63,7 +63,7 @@ namespace l
} }
fi = new FileInfo(rv,fusepath_,ffi_->direct_io); fi = new FileInfo(rv,fusepath_,ffi_->direct_io);
ffi_->fh = reinterpret_cast<uint64_t>(fi); ffi_->fh = reinterpret_cast<uint64_t>(fi);
return 0; return 0;
@ -89,7 +89,7 @@ Func::CreateFF::operator()(Branches2 &branches_,
if(cfg->writeback_cache) if(cfg->writeback_cache)
utils::tweak_flags_writeback_cache(&ffi_->flags); utils::tweak_flags_writeback_cache(&ffi_->flags);
ffi_->noflush = !utils::calculate_flush(cfg->flushonclose,ffi_->flags); ffi_->noflush = !utils::calculate_flush(cfg->flushonclose,ffi_->flags);
rv = l::create(branches_,fusepath_,mode_,fc->umask,ffi_); rv = l::create(branches_,fusepath_,mode_,fc->umask,ffi_);
return rv; return rv;

Loading…
Cancel
Save