summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndreas Baumann <abaumann@yahoo.com>2013-04-15 22:04:31 +0200
committerAndreas Baumann <abaumann@yahoo.com>2013-04-15 22:04:31 +0200
commitf0395cd142b2bef23a13b90b0cb553881ebfc969 (patch)
tree4b3dce914bdc6cef7007651b49eb86c22e1ab8a6
parent906665d02eefdc98b93edab645e8f0c08c5dfdf3 (diff)
downloadpgfuse-f0395cd142b2bef23a13b90b0cb553881ebfc969.tar.gz
pgfuse-f0395cd142b2bef23a13b90b0cb553881ebfc969.tar.bz2
changed return type of free/used functions (64-bit)
-rw-r--r--pgsql.c10
-rw-r--r--pgsql.h8
2 files changed, 9 insertions, 9 deletions
diff --git a/pgsql.c b/pgsql.c
index 242c953..c8930d5 100644
--- a/pgsql.c
+++ b/pgsql.c
@@ -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;
}
diff --git a/pgsql.h b/pgsql.h
index 3738894..bd8e0f5 100644
--- a/pgsql.h
+++ b/pgsql.h
@@ -98,12 +98,12 @@ int psql_rename( PGconn *conn, const int64_t from_id, const int64_t from_parent_
size_t psql_get_block_size( PGconn *conn, const size_t block_size );
-size_t psql_get_fs_blocks_used( PGconn *conn );
+int64_t psql_get_fs_blocks_used( PGconn *conn );
-size_t psql_get_fs_blocks_free( PGconn *conn );
+int64_t psql_get_fs_blocks_free( PGconn *conn );
-size_t psql_get_fs_files_used( PGconn *conn );
+int64_t psql_get_fs_files_used( PGconn *conn );
-size_t psql_get_fs_files_free( PGconn *conn );
+int64_t psql_get_fs_files_free( PGconn *conn );
#endif