projects
/
fio.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(from parent 1:
437c9b7
)
[PATCH] Random map needs to use ->real_file_size, not ->file_size
author
Jens Axboe
<jens.axboe@oracle.com>
Tue, 13 Feb 2007 19:07:26 +0000
(20:07 +0100)
committer
Jens Axboe
<jens.axboe@oracle.com>
Tue, 13 Feb 2007 19:07:26 +0000
(20:07 +0100)
Signed-off-by: Jens Axboe <jens.axboe@oracle.com>
init.c
patch
|
blob
|
blame
|
history
diff --git
a/init.c
b/init.c
index 4fe1dce8b9b8a306ff30e8afcdf9f88a6ec06474..e09a1f9eca44a2804c0c226d29c06ee9e4f3413f 100644
(file)
--- a/
init.c
+++ b/
init.c
@@
-849,7
+849,7
@@
int init_random_state(struct thread_data *td)
if (!td->norandommap) {
for_each_file(td, f, i) {
- blocks = (f->file_size + td->rw_min_bs - 1) / td->rw_min_bs;
+ blocks = (f->
real_
file_size + td->rw_min_bs - 1) / td->rw_min_bs;
num_maps = (blocks + BLOCKS_PER_MAP-1)/ BLOCKS_PER_MAP;
f->file_map = malloc(num_maps * sizeof(long));
f->num_maps = num_maps;