aboutsummaryrefslogtreecommitdiff
path: root/zenstore/basicfile.cpp
diff options
context:
space:
mode:
authorDan Engelbrecht <[email protected]>2022-04-12 14:00:46 +0200
committerDan Engelbrecht <[email protected]>2022-04-12 14:00:46 +0200
commitf74f34afdc786ae214ec5af729651d54dd122128 (patch)
treeb3f8c4c74ea6fe1d2f9f3e2cbe6683801fa541eb /zenstore/basicfile.cpp
parentBe more strict with m_TotalSize atomic operations (diff)
downloadzen-f74f34afdc786ae214ec5af729651d54dd122128.tar.xz
zen-f74f34afdc786ae214ec5af729651d54dd122128.zip
switch posix_fallocate to fallocate on MacOS
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 e795b67eb..a3e1c4f20 100644
--- a/zenstore/basicfile.cpp
+++ b/zenstore/basicfile.cpp
@@ -354,7 +354,7 @@ BasicFile::SetFileSize(uint64_t FileSize)
}
if (FileSize > 0)
{
- int Error = posix_fallocate(Fd, 0, (off_t)FileSize);
+ int Error = fallocate(Fd, 0, (off_t)FileSize);
if (Error)
{
ThrowSystemError(Error, fmt::format("Failed to allocate space of {} for file {}", FileSize, PathFromHandle(m_FileHandle)));