summaryrefslogtreecommitdiff
path: root/src/VBox/Runtime/r3/linux/RTFileSetAllocationSize-linux.cpp
diff options
context:
space:
mode:
authorvboxsync <vboxsync@cfe28804-0f27-0410-a406-dd0f0b0b656f>2017-08-13 14:44:30 +0000
committervboxsync <vboxsync@cfe28804-0f27-0410-a406-dd0f0b0b656f>2017-08-13 14:44:30 +0000
commitb51ba697abdd880ef7c68c411f04789c1d47b42e (patch)
treece22988f9d0ad1b1a68ca09bccfb5f055dea4c14 /src/VBox/Runtime/r3/linux/RTFileSetAllocationSize-linux.cpp
parent643e66a8fd9cb7ab91f3e2cf17a37c1826e79738 (diff)
downloadVirtualBox-svn-b51ba697abdd880ef7c68c411f04789c1d47b42e.tar.gz
Runtime/linux: Use fallocate64 to support large files on 32bit hosts.
git-svn-id: https://www.virtualbox.org/svn/vbox/trunk@68401 cfe28804-0f27-0410-a406-dd0f0b0b656f
Diffstat (limited to 'src/VBox/Runtime/r3/linux/RTFileSetAllocationSize-linux.cpp')
-rw-r--r--src/VBox/Runtime/r3/linux/RTFileSetAllocationSize-linux.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/VBox/Runtime/r3/linux/RTFileSetAllocationSize-linux.cpp b/src/VBox/Runtime/r3/linux/RTFileSetAllocationSize-linux.cpp
index 9cf62313ed7..fca8a527236 100644
--- a/src/VBox/Runtime/r3/linux/RTFileSetAllocationSize-linux.cpp
+++ b/src/VBox/Runtime/r3/linux/RTFileSetAllocationSize-linux.cpp
@@ -56,7 +56,7 @@ RTDECL(int) RTFileSetAllocationSize(RTFILE hFile, uint64_t cbSize, uint32_t fFla
VERR_NOT_SUPPORTED);
int rc = VINF_SUCCESS;
- PFNLNXFALLOCATE pfnLnxFAllocate = (PFNLNXFALLOCATE)(uintptr_t)dlsym(RTLD_DEFAULT, "fallocate");
+ PFNLNXFALLOCATE pfnLnxFAllocate = (PFNLNXFALLOCATE)(uintptr_t)dlsym(RTLD_DEFAULT, "fallocate64");
if (VALID_PTR(pfnLnxFAllocate))
{
int fLnxFlags = (fFlags & RTFILE_ALLOC_SIZE_F_KEEP_SIZE) ? LNX_FALLOC_FL_KEEP_SIZE : 0;