projects
/
fio.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
1712751
)
Fix problem with fadvise() and fill_device option
author
Jens Axboe
<jens.axboe@oracle.com>
Tue, 2 Jun 2009 09:27:26 +0000
(11:27 +0200)
committer
Jens Axboe
<jens.axboe@oracle.com>
Tue, 2 Jun 2009 09:27:26 +0000
(11:27 +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 85a174766de9a3872a550b011d8e1356bbb41f0a..1372177efc67a6499c4a3c48483ff6b92981d981 100644
(file)
--- a/
filesetup.c
+++ b/
filesetup.c
@@
-255,8
+255,11
@@
static int __file_invalidate_cache(struct thread_data *td, struct fio_file *f,
{
int ret = 0;
- if (len == -1ULL)
+ if (len == -1ULL)
{
len = f->io_size;
+ if (len == -1ULL && td->o.fill_device)
+ return 0;
+ }
if (off == -1ULL)
off = f->file_offset;