summaryrefslogtreecommitdiffstats
path: root/src/server/fileutil.h
diff options
context:
space:
mode:
authorSimon Rettberg2017-10-11 16:00:00 +0200
committerSimon Rettberg2017-10-11 16:00:00 +0200
commit84b57000a176f676e2b70b29127455524e578f01 (patch)
tree04f2cd7ab4b867df1f1dce9fcec085c08eeafa4a /src/server/fileutil.h
parent[KERNEL] version check to support pointer to backing_dev_info in request_queue (diff)
downloaddnbd3-84b57000a176f676e2b70b29127455524e578f01.tar.gz
dnbd3-84b57000a176f676e2b70b29127455524e578f01.tar.xz
dnbd3-84b57000a176f676e2b70b29127455524e578f01.zip
[SERVER] rpc: Support querying storage size + available space
Diffstat (limited to 'src/server/fileutil.h')
-rw-r--r--src/server/fileutil.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/server/fileutil.h b/src/server/fileutil.h
index 36ee432..a4458a3 100644
--- a/src/server/fileutil.h
+++ b/src/server/fileutil.h
@@ -9,7 +9,7 @@ bool file_isReadable(char *file);
bool file_isWritable(char *file);
bool mkdir_p(const char* path);
bool file_alloc(int fd, uint64_t offset, uint64_t size);
-int64_t file_freeDiskSpace(const char * const path);
+bool file_freeDiskSpace(const char * const path, uint64_t *total, uint64_t *avail);
time_t file_lastModification(const char * const file);
int file_loadLineBased(const char * const file, int minFields, int maxFields, void (*cb)(int argc, char **argv, void *data), void *data);