commit | a00735e66f9ec42549da94eba3170e543b542904 | [log] [tgz] |
---|---|---|
author | Jens Axboe <jens.axboe@oracle.com> | Fri Nov 03 08:58:08 2006 +0100 |
committer | Jens Axboe <jens.axboe@oracle.com> | Fri Nov 03 08:58:08 2006 +0100 |
tree | fbb8bc53209c6de4bede252e1126e4b94ccc0a7f | |
parent | c7c280ed2e4f836bd8e9e125d55d097539b70e21 [diff] [blame] |
[PATCH] Add seperate read/write block size options Signed-off-by: Jens Axboe <jens.axboe@oracle.com>
diff --git a/filesetup.c b/filesetup.c index 0b95640..a163382 100644 --- a/filesetup.c +++ b/filesetup.c
@@ -49,12 +49,12 @@ goto err; } - b = malloc(td->max_bs); - memset(b, 0, td->max_bs); + b = malloc(td->max_bs[DDIR_WRITE]); + memset(b, 0, td->max_bs[DDIR_WRITE]); left = f->file_size; while (left && !td->terminate) { - bs = td->max_bs; + bs = td->max_bs[DDIR_WRITE]; if (bs > left) bs = left;