projects
/
fio.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
a59b12d
)
filehash: ignore hashed file with fd == -1
author
Jens Axboe
<axboe@kernel.dk>
Thu, 17 Jun 2021 16:55:20 +0000
(10:55 -0600)
committer
Jens Axboe
<axboe@kernel.dk>
Thu, 17 Jun 2021 16:55:20 +0000
(10:55 -0600)
This can happen sporadically during setup, and it need not be a
failure condition.
Signed-off-by: Jens Axboe <axboe@kernel.dk>
filehash.c
patch
|
blob
|
blame
|
history
diff --git
a/filehash.c
b/filehash.c
index b55ab7340e68065de4bcb6eb6e8f39111d38886e..71ec7b18c3345cfabdd2a7f48c0ce20c1c2579d3 100644
(file)
--- a/
filehash.c
+++ b/
filehash.c
@@
-60,10
+60,8
@@
static struct fio_file *__lookup_file_hash(const char *name)
if (!f->file_name)
continue;
- if (!strcmp(f->file_name, name)) {
- assert(f->fd != -1);
+ if (!strcmp(f->file_name, name))
return f;
- }
}
return NULL;