From 49a416bd60825b3e42d02e46ccf495909747c16e Mon Sep 17 00:00:00 2001 From: Jens Axboe Date: Thu, 14 Apr 2016 08:57:46 -0600 Subject: [PATCH] filesetup: assign fileno at setup time For duplicate jobs, we don't always get fileno assigned if we have multiple files per job. Ensure that we do. Signed-off-by: Jens Axboe --- filesetup.c | 1 + 1 file changed, 1 insertion(+) diff --git a/filesetup.c b/filesetup.c index a8216325..3fc14641 100644 --- a/filesetup.c +++ b/filesetup.c @@ -809,6 +809,7 @@ int setup_files(struct thread_data *td) */ total_size = 0; for_each_file(td, f, i) { + f->fileno = i; if (f->real_file_size == -1ULL) total_size = -1ULL; else -- 2.25.1