projects
/
fio.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
88c46b6
)
Make sure to set io size on non-files
author
Jens Axboe
<jens.axboe@oracle.com>
Tue, 27 Mar 2007 10:45:34 +0000
(12:45 +0200)
committer
Jens Axboe
<jens.axboe@oracle.com>
Tue, 27 Mar 2007 10:45:34 +0000
(12:45 +0200)
Signed-off-by: Jens Axboe <jens.axboe@oracle.com>
filesetup.c
patch
|
blob
|
blame
|
history
diff --git
a/filesetup.c
b/filesetup.c
index a059df66747db6bb8ca3884c874f0ebef3555104..0abce8cbfe5b685d67518690eb3fcc8c675f4d96 100644
(file)
--- a/
filesetup.c
+++ b/
filesetup.c
@@
-155,11
+155,15
@@
static int create_files(struct thread_data *td)
f->file_offset = td->o.start_offset;
- if (f->filetype != FIO_TYPE_FILE)
- continue;
if (!total_file_size)
continue;
+ if (f->filetype != FIO_TYPE_FILE) {
+ if (!f->file_size)
+ f->file_size = total_file_size / td->o.nr_files;
+ continue;
+ }
+
if (f->flags & FIO_FILE_EXISTS) {
if ((f->file_size > td->o.size / td->o.nr_files) ||
!f->file_size)