diff -r d0d5a970292f -r e9dc53661df4 src/server/plugins/postgresql/vfs.h --- a/src/server/plugins/postgresql/vfs.h Mon Jan 31 21:33:46 2022 +0100 +++ b/src/server/plugins/postgresql/vfs.h Tue Feb 01 17:47:50 2022 +0100 @@ -47,6 +47,8 @@ int64_t resource_id; int64_t parent_id; WSBool iscollection; + + struct stat s; } PgFile; typedef struct PgDir { @@ -66,7 +68,14 @@ * * If the resource is not found, ctx->vfs_errno is set to ENOENT */ -int pg_resolve_path(VFSContext *ctx, const char *path, int64_t *parent_id, int64_t *resource_id, const char **resource_name, WSBool *iscollection); +int pg_resolve_path( + VFSContext *ctx, + const char *path, + int64_t *parent_id, + int64_t *resource_id, + const char **resource_name, + WSBool *iscollection, + struct stat *s); SYS_FILE pg_vfs_open(VFSContext *ctx, const char *path, int oflags); int pg_vfs_stat(VFSContext *ctx, const char *path, struct stat *buf);