windows: reduce block size used in posix_fallocate()
authorBruce Cran <bruce@cran.org.uk>
Thu, 6 Sep 2012 15:08:49 +0000 (09:08 -0600)
committerJens Axboe <axboe@kernel.dk>
Thu, 6 Sep 2012 15:08:49 +0000 (09:08 -0600)
Reduce the buffer size in posix_fallocate() to avoid
compatability problems.

Signed-off-by: Jens Axboe <axboe@kernel.dk>
os/windows/posix.c

index 29ed2c57172735b6bf73abed670d543a772badc5..ce41ef8edfb75cb4df615ca5006fb39218434428 100755 (executable)
@@ -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;