[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [PATCH v6 01/10] qemu-img: Flush stdout before before potential stde
From: |
Max Reitz |
Subject: |
Re: [PATCH v6 01/10] qemu-img: Flush stdout before before potential stderr messages |
Date: |
Mon, 13 Jul 2020 11:22:17 +0200 |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.9.0 |
On 06.07.20 22:39, Eric Blake wrote:
> During 'qemu-img create ... 2>&1', if --quiet is not in force, we can
> end up with buffered I/O in stdout that was produced before failure,
> but which appears in output after failure. This is confusing; the fix
> is to flush stdout prior to attempting anything that might produce an
> error message. Several iotests demonstrate the resulting ordering
> change now that the merged outputs now reflect chronology. (An even
> better fix would be to avoid printf from within block.c altogether,
> but that's much more invasive...)
>
> Signed-off-by: Eric Blake <eblake@redhat.com>
> ---
> block.c | 1 +
> tests/qemu-iotests/049.out | 8 ++++----
> tests/qemu-iotests/054.out | 2 +-
> tests/qemu-iotests/079.out | 2 +-
> tests/qemu-iotests/112.out | 4 ++--
> tests/qemu-iotests/259.out | 2 +-
> 6 files changed, 10 insertions(+), 9 deletions(-)
282 also needs some treatment.
Max
signature.asc
Description: OpenPGP digital signature
- [PATCH v6 00/10] Tighten qemu-img rules on missing backing format, Eric Blake, 2020/07/06
- [PATCH v6 02/10] block: Finish deprecation of 'qemu-img convert -n -o', Eric Blake, 2020/07/06
- [PATCH v6 01/10] qemu-img: Flush stdout before before potential stderr messages, Eric Blake, 2020/07/06
- Re: [PATCH v6 01/10] qemu-img: Flush stdout before before potential stderr messages,
Max Reitz <=
- [PATCH v6 04/10] vmdk: Add trivial backing_fmt support, Eric Blake, 2020/07/06
- [PATCH v6 03/10] sheepdog: Add trivial backing_fmt support, Eric Blake, 2020/07/06
- [PATCH v6 05/10] qcow: Tolerate backing_fmt=, Eric Blake, 2020/07/06
- [PATCH v6 06/10] block: Error if backing file fails during creation without -u, Eric Blake, 2020/07/06
- [PATCH v6 07/10] qcow2: Deprecate use of qemu-img amend to change backing file, Eric Blake, 2020/07/06
- [PATCH v6 10/10] qemu-img: Deprecate use of -b without -F, Eric Blake, 2020/07/06
- [PATCH v6 08/10] iotests: Specify explicit backing format where sensible, Eric Blake, 2020/07/06
- [PATCH v6 09/10] block: Add support to warn on backing file change without format, Eric Blake, 2020/07/06