mirror of
https://github.com/trapexit/mergerfs.git
synced 2026-10-25 18:40:18 -04:00
Ensure passthrough and keep_cache are mutually exclusive (#1493)
This commit is contained in:
parent
f852474073
commit
fa851eda3a
2 changed files with 3 additions and 3 deletions
|
|
@ -2373,7 +2373,7 @@ fuse_lib_open(fuse_req_t req,
|
|||
err = f->fs->op.open(path,&ffi);
|
||||
if(!err)
|
||||
{
|
||||
if(ffi.auto_cache)
|
||||
if(ffi.auto_cache && (ffi.passthrough == false))
|
||||
open_auto_cache(f,hdr_->nodeid,path,&ffi);
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -262,8 +262,8 @@ _postprocess_passthrough(Config::Write &cfg_)
|
|||
if(cfg_->cache_files == CacheFiles::ENUM::OFF)
|
||||
{
|
||||
SysLog::warning("'cache.files' can not be 'off' when using 'passthrough'."
|
||||
" Setting 'cache.files=auto-full'");
|
||||
cfg_->cache_files = CacheFiles::ENUM::AUTO_FULL;
|
||||
" Setting 'cache.files=full'");
|
||||
cfg_->cache_files = CacheFiles::ENUM::FULL;
|
||||
}
|
||||
|
||||
if(cfg_->writeback_cache == true)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue