diff --git a/libfuse/lib/fuse.cpp b/libfuse/lib/fuse.cpp index b535c1b1..f2c93e2b 100644 --- a/libfuse/lib/fuse.cpp +++ b/libfuse/lib/fuse.cpp @@ -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); } } diff --git a/src/option_parser.cpp b/src/option_parser.cpp index 9eb62eae..643c7d6f 100644 --- a/src/option_parser.cpp +++ b/src/option_parser.cpp @@ -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)