diff options
| author | Dan Engelbrecht <[email protected]> | 2022-04-12 14:00:46 +0200 |
|---|---|---|
| committer | Dan Engelbrecht <[email protected]> | 2022-04-12 14:00:46 +0200 |
| commit | f74f34afdc786ae214ec5af729651d54dd122128 (patch) | |
| tree | b3f8c4c74ea6fe1d2f9f3e2cbe6683801fa541eb /zenstore/basicfile.cpp | |
| parent | Be more strict with m_TotalSize atomic operations (diff) | |
| download | zen-f74f34afdc786ae214ec5af729651d54dd122128.tar.xz zen-f74f34afdc786ae214ec5af729651d54dd122128.zip | |
switch posix_fallocate to fallocate on MacOS
Diffstat (limited to 'zenstore/basicfile.cpp')
| -rw-r--r-- | zenstore/basicfile.cpp | 2 |
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))); |