mirror of
https://github.com/trapexit/mergerfs.git
synced 2026-12-02 04:46:41 -05:00
fix: apply cache.statfs given at mount
- The statvfs cache timeout was only set from the runtime xattr path in fuse_setxattr. cache.statfs=N given at mount was stored in the config and reported back, but the cache stayed off and every policy check paid a raw statvfs. - Set the timeout in options::parse before finish_initializing. The default (0) is unchanged.
This commit is contained in:
parent
5a8e0cdc2d
commit
92c5f57f6d
1 changed files with 2 additions and 0 deletions
|
|
@ -347,6 +347,8 @@ namespace options
|
|||
::_set_subtype(args_);
|
||||
::_cleanup_options();
|
||||
|
||||
fs::statvfs_cache_timeout(cfg.cache_statfs);
|
||||
|
||||
cfg.finish_initializing();
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue