--- a/src/server/plugins/postgresql/vfs.c Sun May 15 08:56:00 2022 +0200 +++ b/src/server/plugins/postgresql/vfs.c Sun Aug 07 13:46:43 2022 +0200 @@ -27,6 +27,7 @@ */ #include "vfs.h" +#include "config.h" #include <inttypes.h> @@ -140,7 +141,12 @@ // params: $1: resource_id static const char *sql_delete_res = "delete from Resource where parent_id is not null and resource_id = $1;"; -VFS* pg_vfs_create(Session *sn, Request *rq, pblock *pb) { + +void* pg_vfs_init(ServerConfiguration *cfg, pool_handle_t *pool, WSConfigNode *config) { + return pg_init_repo(pool, config); +} + +VFS* pg_vfs_create(Session *sn, Request *rq, pblock *pb, void *initData) { // resourcepool is required char *resource_pool = pblock_findval("resourcepool", pb); if(!resource_pool) {