From bc26616b1af435f7c7509ff3f5b70bc3991015b2 Mon Sep 17 00:00:00 2001 From: Andreas Baumann Date: Sun, 6 May 2012 12:51:36 +0200 Subject: added mount option blocksize, can be set when creating the filsystem (first write), schema.sql doesn't contain block size information anymore --- pgsql.h | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) (limited to 'pgsql.h') diff --git a/pgsql.h b/pgsql.h index 1325be8..014cd96 100644 --- a/pgsql.h +++ b/pgsql.h @@ -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 -- cgit v1.2.3-54-g00ecf