summaryrefslogtreecommitdiffstats
path: root/src/server/fileutil.h
diff options
context:
space:
mode:
authorSimon Rettberg2018-03-16 10:07:07 +0100
committerSimon Rettberg2018-03-16 10:07:07 +0100
commit1f3de3f0e20d20e8f388f07339630090edaba56c (patch)
tree9bf99629a878019b55fa907852b19eedebc2fd37 /src/server/fileutil.h
parent[SERVER] Experimental support for sparse files in proxy mode (diff)
downloaddnbd3-1f3de3f0e20d20e8f388f07339630090edaba56c.tar.gz
dnbd3-1f3de3f0e20d20e8f388f07339630090edaba56c.tar.xz
dnbd3-1f3de3f0e20d20e8f388f07339630090edaba56c.zip
[SERVER] Make sparse file mode actually work
Diffstat (limited to 'src/server/fileutil.h')
-rw-r--r--src/server/fileutil.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/server/fileutil.h b/src/server/fileutil.h
index a4458a3..fcb5c20 100644
--- a/src/server/fileutil.h
+++ b/src/server/fileutil.h
@@ -9,6 +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);
+bool file_setSize(int fd, uint64_t size);
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);