diff options
author | Andreas Baumann <abaumann@yahoo.com> | 2013-04-15 22:04:31 +0200 |
---|---|---|
committer | Andreas Baumann <abaumann@yahoo.com> | 2013-04-15 22:04:31 +0200 |
commit | f0395cd142b2bef23a13b90b0cb553881ebfc969 (patch) | |
tree | 4b3dce914bdc6cef7007651b49eb86c22e1ab8a6 /pgsql.c | |
parent | 906665d02eefdc98b93edab645e8f0c08c5dfdf3 (diff) | |
download | pgfuse-f0395cd142b2bef23a13b90b0cb553881ebfc969.tar.gz pgfuse-f0395cd142b2bef23a13b90b0cb553881ebfc969.tar.bz2 |
changed return type of free/used functions (64-bit)
Diffstat (limited to 'pgsql.c')
-rw-r--r-- | pgsql.c | 10 |
1 files changed, 5 insertions, 5 deletions
@@ -929,7 +929,7 @@ size_t psql_get_block_size( PGconn *conn, const size_t block_size ) return db_block_size; } -size_t psql_get_fs_blocks_used( PGconn *conn ) +int64_t psql_get_fs_blocks_used( PGconn *conn ) { PGresult *res; char *data; @@ -942,7 +942,7 @@ size_t psql_get_fs_blocks_used( PGconn *conn ) return -EIO; } - /* we calculate the number of blocks occupied by all data entries + /* we calculate the number of blocks occuppied by all data entries * plus all "indoes" (in our case entries in dir), * more like a filesystem would do it. Returning blocks as this is * harder to overflow a size_t (in case it's 32-bit, modern @@ -956,12 +956,12 @@ size_t psql_get_fs_blocks_used( PGconn *conn ) return used; } -size_t psql_get_fs_blocks_free( PGconn *conn ) +int64_t psql_get_fs_blocks_free( PGconn *conn ) { return 9999; } -size_t psql_get_fs_files_used( PGconn *conn ) +int64_t psql_get_fs_files_used( PGconn *conn ) { PGresult *res; char *data; @@ -982,7 +982,7 @@ size_t psql_get_fs_files_used( PGconn *conn ) return used; } -size_t psql_get_fs_files_free( PGconn *conn ) +int64_t psql_get_fs_files_free( PGconn *conn ) { return 9999; } |