X-Git-Url: https://git.kernel.dk/?p=fio.git;a=blobdiff_plain;f=iolog.c;h=b8ee067fa7d948f744ef24045fef28038f76b40d;hp=eeaca291e21eb6503712f29a602ca5ad121a2615;hb=30cb4c650a0a4c7ca79d4336ddb1fe3f988a4b2a;hpb=bcbfeefa7bce8383cf85fe59ced91f54821dfbd2 diff --git a/iolog.c b/iolog.c index eeaca291..b8ee067f 100644 --- a/iolog.c +++ b/iolog.c @@ -323,8 +323,7 @@ static int read_iolog2(struct thread_data *td, FILE *f) } else if (r == 2) { rw = DDIR_INVAL; if (!strcmp(act, "add")) { - td->o.nr_files++; - fileno = add_file(td, fname, 0); + fileno = add_file(td, fname, 0, 1); file_action = FIO_LOG_ADD_FILE; continue; } else if (!strcmp(act, "open")) {