projects
/
fio.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
c224ec0
)
windows: reduce block size used in posix_fallocate()
author
Bruce Cran
<bruce@cran.org.uk>
Thu, 6 Sep 2012 15:08:49 +0000
(09:08 -0600)
committer
Jens 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
patch
|
blob
|
blame
|
history
diff --git
a/os/windows/posix.c
b/os/windows/posix.c
index 29ed2c57172735b6bf73abed670d543a772badc5..ce41ef8edfb75cb4df615ca5006fb39218434428 100755
(executable)
--- 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)
{
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;
int rc = 0;
char *buf;
unsigned int write_len;