From c12f6dabdb82e63e1020f1e61c366ca552cc9ac8 Mon Sep 17 00:00:00 2001 From: Jens Axboe Date: Thu, 20 Nov 2008 09:13:04 +0100 Subject: [PATCH] Make log writing append Signed-off-by: Jens Axboe --- log.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/log.c b/log.c index 611aa9f9..01e4ad0b 100644 --- a/log.c +++ b/log.c @@ -388,7 +388,7 @@ static int init_iolog_write(struct thread_data *td) FILE *f; unsigned int i; - f = fopen(td->o.write_iolog_file, "w+"); + f = fopen(td->o.write_iolog_file, "a"); if (!f) { perror("fopen write iolog"); return 1; @@ -455,7 +455,7 @@ void __finish_log(struct io_log *log, const char *name) unsigned int i; FILE *f; - f = fopen(name, "w"); + f = fopen(name, "a"); if (!f) { perror("fopen log"); return; -- 2.25.1