diff options
author | Andreas Baumann <abaumann@yahoo.com> | 2012-05-06 12:51:36 +0200 |
---|---|---|
committer | Andreas Baumann <abaumann@yahoo.com> | 2012-05-06 12:51:36 +0200 |
commit | bc26616b1af435f7c7509ff3f5b70bc3991015b2 (patch) | |
tree | 11fd917530d860b3e59bc5d2075729a90f464a72 /pgsql.h | |
parent | b80d19d023149d81fc80ff873d96cf14617db06d (diff) | |
download | pgfuse-bc26616b1af435f7c7509ff3f5b70bc3991015b2.tar.gz pgfuse-bc26616b1af435f7c7509ff3f5b70bc3991015b2.tar.bz2 |
added mount option blocksize, can be set when creating the filsystem
(first write), schema.sql doesn't contain block size information anymore
Diffstat (limited to 'pgsql.h')
-rw-r--r-- | pgsql.h | 8 |
1 files changed, 5 insertions, 3 deletions
@@ -80,7 +80,7 @@ int psql_write_meta( PGconn *conn, const int64_t id, const char *path, PgMeta me int psql_create_file( PGconn *conn, const int64_t parent_id, const char *path, const char *new_file, PgMeta meta ); -int psql_read_buf( PGconn *conn, const int64_t id, const char *path, char *buf, const off_t offset, const size_t len, int verbose ); +int psql_read_buf( PGconn *conn, const size_t block_size, const int64_t id, const char *path, char *buf, const off_t offset, const size_t len, int verbose ); int psql_readdir( PGconn *conn, const int64_t parent_id, void *buf, fuse_fill_dir_t filler ); @@ -90,10 +90,12 @@ int psql_delete_dir( PGconn *conn, const int64_t id, const char *path ); int psql_delete_file( PGconn *conn, const int64_t id, const char *path ); -int psql_write_buf( PGconn *conn, const int64_t id, const char *path, const char *buf, const off_t offset, const size_t len, int verbose ); +int psql_write_buf( PGconn *conn, const size_t block_size, const int64_t id, const char *path, const char *buf, const off_t offset, const size_t len, int verbose ); -int psql_truncate( PGconn *conn, const int64_t id, const char *path, const off_t offset ); +int psql_truncate( PGconn *conn, const size_t block_size, const int64_t id, const char *path, const off_t offset ); int psql_rename( PGconn *conn, const int64_t from_id, const int64_t from_parent_id, const int64_t to_parent_id, const char *rename_to, const char *from, const char *to ); +size_t psql_get_block_size( PGconn *conn, const size_t block_size ); + #endif |