summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJens Axboe <axboe@kernel.dk>2021-06-17 10:55:20 -0600
committerJens Axboe <axboe@kernel.dk>2021-06-17 10:55:20 -0600
commitafa37b56c6637967180e4409adbb682b2ce16bcb (patch)
treef99d4a341847d2777505321a828879cae8adbba1
parenta59b12d2a5eb92c1128a5d8ebcd03b1831962ce5 (diff)
downloadfio-afa37b56c6637967180e4409adbb682b2ce16bcb.tar.gz
fio-afa37b56c6637967180e4409adbb682b2ce16bcb.tar.bz2
filehash: ignore hashed file with fd == -1
This can happen sporadically during setup, and it need not be a failure condition. Signed-off-by: Jens Axboe <axboe@kernel.dk>
-rw-r--r--filehash.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/filehash.c b/filehash.c
index b55ab734..71ec7b18 100644
--- 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;