qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
From: Eric Blake <eblake@redhat.com>
To: Anton Nefedov <anton.nefedov@virtuozzo.com>, qemu-devel@nongnu.org
Cc: qemu-block@nongnu.org, kwolf@redhat.com, mreitz@redhat.com,
	stefanha@redhat.com, famz@redhat.com, berto@igalia.com
Subject: Re: [Qemu-devel] [PATCH v3 1/2] iotest 033: add misaligned write-zeroes test via truncate
Date: Wed, 14 Feb 2018 12:31:55 -0600	[thread overview]
Message-ID: <188eaa75-9562-0492-6fb6-4b45cadc0a28@redhat.com> (raw)
In-Reply-To: <1518624560-38060-2-git-send-email-anton.nefedov@virtuozzo.com>

On 02/14/2018 10:09 AM, Anton Nefedov wrote:
> This new test case only makes sense for qcow2 while iotest 033 is generic;
> however it matches the test purpose perfectly and also 033 contains those
> do_test() tricks to pass the alignment, which won't look nice being
> duplicated in other tests or moved to the common code.
> 
> Signed-off-by: Anton Nefedov <anton.nefedov@virtuozzo.com>
> ---
>   tests/qemu-iotests/033     | 29 +++++++++++++++++++++++++++++
>   tests/qemu-iotests/033.out | 13 +++++++++++++
>   2 files changed, 42 insertions(+)
> 

> +# only interested in qcow2 here; also other formats might respond with
> +#  "not supported" error message
> +if [ $IMGFMT = "qcow2" ]; then
> +    do_test 512 "truncate $L2_COVERAGE" "$TEST_IMG" | _filter_qemu_io
> +fi

But without an else branch that echoes the same text as the if branch 
generates, your .out file is now broken for other image formats.  Or 
does 'qemu-io -c truncate' not produce output?

/me goes and tests...

Okay, looks like truncate is silent; and that the truncation (or 
skipping of the truncation) doesn't affect things.

Tested-by: Eric Blake <eblake@redhat.com>

-- 
Eric Blake, Principal Software Engineer
Red Hat, Inc.           +1-919-301-3266
Virtualization:  qemu.org | libvirt.org

  reply	other threads:[~2018-02-14 18:32 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2018-02-14 16:09 [Qemu-devel] [PATCH v3 0/2] block: fix write with zero flag set and iovector provided Anton Nefedov
2018-02-14 16:09 ` [Qemu-devel] [PATCH v3 1/2] iotest 033: add misaligned write-zeroes test via truncate Anton Nefedov
2018-02-14 18:31   ` Eric Blake [this message]
2018-02-14 16:09 ` [Qemu-devel] [PATCH v3 2/2] block: fix write with zero flag set and iovector provided Anton Nefedov
2018-02-14 17:28 ` [Qemu-devel] [PATCH v3 0/2] " Kevin Wolf

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=188eaa75-9562-0492-6fb6-4b45cadc0a28@redhat.com \
    --to=eblake@redhat.com \
    --cc=anton.nefedov@virtuozzo.com \
    --cc=berto@igalia.com \
    --cc=famz@redhat.com \
    --cc=kwolf@redhat.com \
    --cc=mreitz@redhat.com \
    --cc=qemu-block@nongnu.org \
    --cc=qemu-devel@nongnu.org \
    --cc=stefanha@redhat.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;
as well as URLs for NNTP newsgroup(s).