diff options
author | Andreas Baumann <abaumann@yahoo.com> | 2012-04-26 11:31:20 +0200 |
---|---|---|
committer | Andreas Baumann <abaumann@yahoo.com> | 2012-04-26 11:31:20 +0200 |
commit | dc9bd214c6bcfae631a19ff4b56bb25a6a4b41b0 (patch) | |
tree | 85fc3ed548c288875274a9b21f50793ba74a50bb /pgsql.h | |
parent | c6a269743bcbb4870aa4695094a667c93df36889 (diff) | |
download | pgfuse-dc9bd214c6bcfae631a19ff4b56bb25a6a4b41b0.tar.gz pgfuse-dc9bd214c6bcfae631a19ff4b56bb25a6a4b41b0.tar.bz2 |
normal file renames and moves between directories work
fixed some memory problems in error cases
fixed location of read_only check (always after checking metadata
of the manipulated objects in order to have proper error messages)
Diffstat (limited to 'pgsql.h')
-rw-r--r-- | pgsql.h | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -36,6 +36,7 @@ typedef struct PgMeta { struct timespec ctime; /* last status change time */ struct timespec mtime; /* last modification time */ struct timespec atime; /* last access time */ + int parent_id; /* id/inode_no of parenting directory */ } PgMeta; /* --- transaction management and policies --- */ @@ -92,6 +93,6 @@ int psql_write_buf( PGconn *conn, const int id, const char *path, const char *bu int psql_truncate( PGconn *conn, const int id, const char *path, const off_t offset ); -int psql_rename( PGconn *conn, const char *from, const char *to ); +int psql_rename( PGconn *conn, const int from_id, const int from_parent_id, const int to_parent_id, const char *rename_to, const char *from, const char *to ); #endif |