From: Jens Axboe <axboe@kernel.dk>
To: Rik Faith <rickard.faith@nutanix.com>, fio@vger.kernel.org
Subject: Re: ETA no longer works when -o specified
Date: Thu, 29 May 2014 14:12:37 -0600 [thread overview]
Message-ID: <538794B5.1060705@kernel.dk> (raw)
In-Reply-To: <CAGw_T3o=eAEHYbQ68a+OodruxEuX0EDE9gihinb+zBkDWU_dcg@mail.gmail.com>
On 05/28/2014 02:24 PM, Rik Faith wrote:
> Regarding fio version fio-2.1.9-17-gd9b1 (after April 11, 2014):
>
> A recent change (5e1d8745471d1f315113c5c3fd8b93809d9ddff9) caused stdout
> to be closed when -o was specified, which prevents ETA output from showing
> up on stdout even when, e.g., json is being saved in the file.
>
> This patch continues to close f_out so that there is no leak if multiple -o
> options are specified, but doesn't close stdout. Hence, ETA works again
> when it should.
>
> diff --git a/init.c b/init.c
> index 4c5a8dd..a546861 100644
> --- a/init.c
> +++ b/init.c
> @@ -1739,7 +1739,7 @@ int parse_cmd_line(int argc, char *argv[], int
> client_type)
> write_bw_log = 1;
> break;
> case 'o':
> - if (f_out)
> + if (f_out && f_out != stdout)
> fclose(f_out);
Thanks Rik, applied.
--
Jens Axboe
prev parent reply other threads:[~2014-05-29 20:12 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-05-28 20:24 ETA no longer works when -o specified Rik Faith
2014-05-29 20:12 ` Jens Axboe [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=538794B5.1060705@kernel.dk \
--to=axboe@kernel.dk \
--cc=fio@vger.kernel.org \
--cc=rickard.faith@nutanix.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox