aboutsummaryrefslogtreecommitdiff
path: root/zenstore/basicfile.cpp
diff options
context:
space:
mode:
authorDan Engelbrecht <[email protected]>2022-04-01 16:08:53 +0200
committerDan Engelbrecht <[email protected]>2022-04-01 16:08:53 +0200
commit345cf462e89ba37867abe4c0722ce2549dddc4ca (patch)
tree570dc1438995d091b180c0792a20f50e639df87c /zenstore/basicfile.cpp
parentmake sure we allocate disk space when we set file size (diff)
downloadzen-345cf462e89ba37867abe4c0722ce2549dddc4ca.tar.xz
zen-345cf462e89ba37867abe4c0722ce2549dddc4ca.zip
linux fixes
Diffstat (limited to 'zenstore/basicfile.cpp')
-rw-r--r--zenstore/basicfile.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/zenstore/basicfile.cpp b/zenstore/basicfile.cpp
index 93d4ded13..8b3ee2844 100644
--- a/zenstore/basicfile.cpp
+++ b/zenstore/basicfile.cpp
@@ -331,7 +331,7 @@ BasicFile::SetFileSize(uint64_t FileSize)
ftruncate(Fd, (off_t)FileSize);
posix_fallocate(Fd, 0, (off_t)FileSize);
#else
- posix_fallocate(Fd, 0, ) int Fd = int(intptr_t(m_FileHandle));
+ int Fd = int(intptr_t(m_FileHandle));
ftruncate64(Fd, (off64_t)FileSize);
posix_fallocate64(Fd, 0, (off64_t)FileSize);
#endif