From af8c0b4f06fa2ebb4eaeb4601b16e2ed08f2b845 Mon Sep 17 00:00:00 2001 From: Jens Axboe Date: Wed, 7 Jun 2006 22:33:17 +0200 Subject: [PATCH] [PATCH] Broken write_iolog option if iolog given We don't want to reject the option as bad, just ignore it. --- init.c | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/init.c b/init.c index 1fc694d3..037dd316 100644 --- a/init.c +++ b/init.c @@ -871,16 +871,19 @@ int parse_jobs_ini(char *file) continue; } if (!check_strstore(p, "iolog", tmpbuf)) { + if (td->iolog_file) + free(td->iolog_file); td->iolog_file = strdup(tmpbuf); td->read_iolog = 1; td->write_iolog = 0; fgetpos(f, &off); continue; } - if (!td->read_iolog && - !check_strstore(p, "write_iolog", tmpbuf)) { - td->iolog_file = strdup(tmpbuf); - td->write_iolog = 1; + if (!check_strstore(p, "write_iolog", tmpbuf)) { + if (!td->read_iolog) { + td->iolog_file = strdup(tmpbuf); + td->write_iolog = 1; + } fgetpos(f, &off); continue; } -- 2.25.1