From ca48255b113cc5ebafadf2d3b174a68b246adb72 Mon Sep 17 00:00:00 2001 From: Bruce Cran Date: Thu, 6 Sep 2012 09:08:49 -0600 Subject: [PATCH] windows: reduce block size used in posix_fallocate() Reduce the buffer size in posix_fallocate() to avoid compatability problems. Signed-off-by: Jens Axboe --- os/windows/posix.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; -- 2.25.1