From: Jens Axboe Date: Fri, 21 Oct 2005 14:57:15 +0000 (+0200) Subject: [PATCH] fio: rename stat file + location, it wasn't reliable before X-Git-Url: https://git.kernel.dk/?a=commitdiff_plain;h=fe6dbcb6a17959fd1b9a0acc92428b93b861e47e;p=disktools.git [PATCH] fio: rename stat file + location, it wasn't reliable before --- diff --git a/fio.c b/fio.c index 1abb1f9..5ce9350 100644 --- a/fio.c +++ b/fio.c @@ -235,7 +235,7 @@ static int init_stat_file(struct thread_data *td) if (!write_stat) return 0; - sprintf(n, "%s.stat", td->file_name); + sprintf(n, "fio_thread%d.stat", td->thread_number); td->stat_fd = open(n, O_WRONLY | O_CREAT | O_TRUNC, 0644); if (td->stat_fd == -1) { perror("open stat file");