42 #define PG_ETAG_MAXLEN 48 |
44 #define PG_ETAG_MAXLEN 48 |
43 |
45 |
44 typedef struct PgVFS { |
46 typedef struct PgVFS { |
45 ResourceData *pg_resource; |
47 ResourceData *pg_resource; |
46 PGconn *connection; |
48 PGconn *connection; |
|
49 char root_resource_id_str[32]; |
47 int64_t root_resource_id; |
50 int64_t root_resource_id; |
48 } PgVFS; |
51 } PgVFS; |
49 |
52 |
50 typedef struct PgFile { |
53 typedef struct PgFile { |
51 int64_t resource_id; |
54 int64_t resource_id; |
67 |
70 |
68 void* pg_vfs_init(ServerConfiguration *cfg, pool_handle_t *pool, WSConfigNode *config); |
71 void* pg_vfs_init(ServerConfiguration *cfg, pool_handle_t *pool, WSConfigNode *config); |
69 |
72 |
70 VFS* pg_vfs_create(Session *sn, Request *rq, pblock *pb, void *initData); |
73 VFS* pg_vfs_create(Session *sn, Request *rq, pblock *pb, void *initData); |
71 |
74 |
72 VFS* pg_vfs_create_from_resourcedata(Session *sn, Request *rq, ResourceData *resdata); |
75 VFS* pg_vfs_create_from_resourcedata(Session *sn, Request *rq, PgRepository *repo, ResourceData *resdata); |
73 |
76 |
74 |
77 |
75 /* |
78 /* |
76 * Resolve a path into a parent_id and resource name |
79 * Resolve a path into a parent_id and resource name |
77 * |
80 * |