Enable caching for the xattrs backend

This commit is contained in:
André Duffeck
2024-07-12 08:39:30 +02:00
parent 4e0ecd1451
commit f5de0a09cf
2 changed files with 11 additions and 1 deletions

View File

@@ -105,6 +105,16 @@ func Posix(cfg *config.Config, enableFSWatch bool) map[string]interface{} {
"cache_auth_username": cfg.IDCache.AuthUsername,
"cache_auth_password": cfg.IDCache.AuthPassword,
},
"filemetadatacache": map[string]interface{}{
"cache_store": cfg.FilemetadataCache.Store,
"cache_nodes": cfg.FilemetadataCache.Nodes,
"cache_database": cfg.FilemetadataCache.Database,
"cache_ttl": cfg.FilemetadataCache.TTL,
"cache_size": cfg.FilemetadataCache.Size,
"cache_disable_persistence": cfg.FilemetadataCache.DisablePersistence,
"cache_auth_username": cfg.FilemetadataCache.AuthUsername,
"cache_auth_password": cfg.FilemetadataCache.AuthPassword,
},
"use_space_groups": cfg.Drivers.Posix.UseSpaceGroups,
"watch_fs": enableFSWatch,
"watch_type": cfg.Drivers.Posix.WatchType,