mirror of
https://github.com/opencloud-eu/opencloud.git
synced 2026-05-12 22:39:34 -05:00
Onle enable fs-watching for the storageprovider, not the dataprovider
We need to make sure that the storageprovider tree is used for watching the fs and not the dataprovider, because the dataprovider doesn't have a mount_id set which is needed to emit proper events.
This commit is contained in:
@@ -85,7 +85,7 @@ func Local(cfg *config.Config) map[string]interface{} {
|
||||
}
|
||||
|
||||
// Posix is the config mapping for the Posix storage driver
|
||||
func Posix(cfg *config.Config) map[string]interface{} {
|
||||
func Posix(cfg *config.Config, enableFSWatch bool) map[string]interface{} {
|
||||
return map[string]interface{}{
|
||||
"root": cfg.Drivers.Posix.Root,
|
||||
"personalspacepath_template": cfg.Drivers.Posix.PersonalSpacePathTemplate,
|
||||
@@ -105,6 +105,7 @@ func Posix(cfg *config.Config) map[string]interface{} {
|
||||
"cache_auth_password": cfg.IDCache.AuthPassword,
|
||||
},
|
||||
"use_space_groups": cfg.Drivers.Posix.UseSpaceGroups,
|
||||
"watch_fs": enableFSWatch,
|
||||
"watch_type": cfg.Drivers.Posix.WatchType,
|
||||
"watch_path": cfg.Drivers.Posix.WatchPath,
|
||||
"watch_folder_kafka_brokers": cfg.Drivers.Posix.WatchFolderKafkaBrokers,
|
||||
|
||||
@@ -14,7 +14,7 @@ func StorageProviderDrivers(cfg *config.Config) map[string]interface{} {
|
||||
"ocis": OcisNoEvents(cfg),
|
||||
"s3": S3(cfg),
|
||||
"s3ng": S3NGNoEvents(cfg),
|
||||
"posix": Posix(cfg),
|
||||
"posix": Posix(cfg, true),
|
||||
}
|
||||
}
|
||||
|
||||
@@ -30,6 +30,6 @@ func DataProviderDrivers(cfg *config.Config) map[string]interface{} {
|
||||
"ocis": Ocis(cfg),
|
||||
"s3": S3(cfg),
|
||||
"s3ng": S3NG(cfg),
|
||||
"posix": Posix(cfg),
|
||||
"posix": Posix(cfg, false),
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user