diff options
author | Andreas Baumann <abaumann@yahoo.com> | 2012-04-14 18:05:17 +0200 |
---|---|---|
committer | Andreas Baumann <abaumann@yahoo.com> | 2012-04-14 18:05:17 +0200 |
commit | 3c3a241c374e42206ad0b9f67f66e6b80ff73d1b (patch) | |
tree | 209366a289a0aa0cce7788f44ae857b4549cb60f /pgsql.h | |
parent | 556900b8356db38a2dc1347bbf042236052b4ba9 (diff) | |
download | pgfuse-3c3a241c374e42206ad0b9f67f66e6b80ff73d1b.tar.gz pgfuse-3c3a241c374e42206ad0b9f67f66e6b80ff73d1b.tar.bz2 |
mode, uid and gid are stored now
Diffstat (limited to 'pgsql.h')
-rw-r--r-- | pgsql.h | 6 |
1 files changed, 4 insertions, 2 deletions
@@ -28,19 +28,21 @@ typedef struct PgMeta { size_t size; /* the size of the file */ mode_t mode; /* type and permissions of file/directory */ + uid_t uid; /* owner of the file/directory */ + gid_t gid; /* group owner of the file/directory */ } PgMeta; int psql_get_meta( PGconn *conn, const char *path, PgMeta *meta ); int psql_write_meta( PGconn *conn, const int id, const char *path, PgMeta meta ); -int psql_create_file( PGconn *conn, const int parent_id, const char *path, const char *new_file, const mode_t mode ); +int psql_create_file( PGconn *conn, const int parent_id, const char *path, const char *new_file, PgMeta meta ); int psql_read_buf( PGconn *conn, const int id, const char *path, char **buf, const size_t len ); int psql_readdir( PGconn *conn, const int parent_id, void *buf, fuse_fill_dir_t filler ); -int psql_create_dir( PGconn *conn, const int parent_id, const char *path, const char *new_dir, const mode_t mode ); +int psql_create_dir( PGconn *conn, const int parent_id, const char *path, const char *new_dir, PgMeta meta ); int psql_delete_dir( PGconn *conn, const int id, const char *path ); |