From: Bruce Cran Date: Thu, 6 Sep 2012 15:08:49 +0000 (-0600) Subject: windows: reduce block size used in posix_fallocate() X-Git-Tag: fio-2.0.10~40 X-Git-Url: https://git.kernel.dk/?p=fio.git;a=commitdiff_plain;h=ca48255b113cc5ebafadf2d3b174a68b246adb72 windows: reduce block size used in posix_fallocate() Reduce the buffer size in posix_fallocate() to avoid compatability problems. Signed-off-by: Jens Axboe --- diff --git a/os/windows/posix.c b/os/windows/posix.c index 29ed2c57..ce41ef8e 100755 --- a/os/windows/posix.c +++ b/os/windows/posix.c @@ -377,7 +377,7 @@ char *basename(char *path) int posix_fallocate(int fd, off_t offset, off_t len) { - const int BUFFER_SIZE = 64 * 1024 * 1024; + const int BUFFER_SIZE = 256 * 1024; int rc = 0; char *buf; unsigned int write_len;