projects
/
fio.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
0798ba3
)
Fix problem with treating ENOENT as an error
author
Jens Axboe
<jens.axboe@oracle.com>
Wed, 11 Apr 2007 10:43:35 +0000
(12:43 +0200)
committer
Jens Axboe
<jens.axboe@oracle.com>
Wed, 11 Apr 2007 10:43:35 +0000
(12:43 +0200)
It's just a zero-sized file, as far as get_file_sizes() is concerned.
Signed-off-by: Jens Axboe <jens.axboe@oracle.com>
filesetup.c
patch
|
blob
|
blame
|
history
diff --git
a/filesetup.c
b/filesetup.c
index c99d5b36dad8195129d40c048eb966d36caebae0..62d048ead5065763262e3a02100c6680cbb10f2b 100644
(file)
--- a/
filesetup.c
+++ b/
filesetup.c
@@
-283,8
+283,10
@@
static int get_file_sizes(struct thread_data *td)
for_each_file(td, f, i) {
if (td->io_ops->open_file(td, f)) {
- log_err("%s\n", td->verror);
- err = 1;
+ if (td->error != ENOENT) {
+ log_err("%s\n", td->verror);
+ err = 1;
+ }
clear_error(td);
} else
td->io_ops->close_file(td, f);