summaryrefslogtreecommitdiff
path: root/pgfuse.c
diff options
context:
space:
mode:
authorAndreas Baumann <abaumann@yahoo.com>2013-04-16 17:14:03 +0200
committerAndreas Baumann <abaumann@yahoo.com>2013-04-16 17:14:03 +0200
commit80208e2c59fc426e2dc2ea4c9af2fa7f064a3331 (patch)
tree1d867efe5635b9da67182ae3fc6bc96cecb82d2c /pgfuse.c
parent763274ef0019017b45969b4d4e827a13784edd14 (diff)
downloadpgfuse-80208e2c59fc426e2dc2ea4c9af2fa7f064a3331.tar.gz
pgfuse-80208e2c59fc426e2dc2ea4c9af2fa7f064a3331.tar.bz2
added some OIDs to path code for the blocks free operation
Diffstat (limited to 'pgfuse.c')
-rw-r--r--pgfuse.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/pgfuse.c b/pgfuse.c
index 7af2d18..e5e8f13 100644
--- a/pgfuse.c
+++ b/pgfuse.c
@@ -953,7 +953,7 @@ static int pgfuse_statfs( const char *path, struct statvfs *buf )
/* blocks */
- blocks_free = psql_get_fs_blocks_free( conn );
+ blocks_free = psql_get_fs_blocks_free( conn, data->verbose );
if( blocks_free < 0 ) {
PSQL_ROLLBACK( conn ); RELEASE( conn );
return -blocks_free;
@@ -970,7 +970,7 @@ static int pgfuse_statfs( const char *path, struct statvfs *buf )
/* inodes */
- files_free = psql_get_fs_blocks_free( conn );
+ files_free = psql_get_fs_files_free( conn );
if( files_free < 0 ) {
PSQL_ROLLBACK( conn ); RELEASE( conn );
return -files_free;
@@ -986,7 +986,7 @@ static int pgfuse_statfs( const char *path, struct statvfs *buf )
files_avail = files_free;
if( data->verbose ) {
- syslog( LOG_ERR, "Stats for '%s' are (%jd blocks total, %jd used, %jd free, "
+ syslog( LOG_DEBUG, "Stats for '%s' are (%jd blocks total, %jd used, %jd free, "
"%jd files total, %jd files used, %jd files free, thread #%u",
data->mountpoint,
blocks_total, blocks_used, blocks_free,