qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
From: Eric Blake <eblake@redhat.com>
To: Peter Maydell <peter.maydell@linaro.org>
Cc: QEMU Developers <qemu-devel@nongnu.org>
Subject: Re: [PULL v2 00/11] bitmaps patches for 2020-05-26
Date: Thu, 28 May 2020 12:49:21 -0500	[thread overview]
Message-ID: <eda79152-942a-fc2d-1859-77aea9c6d497@redhat.com> (raw)
In-Reply-To: <CAFEAcA-30_q6ZtFnpocVh9PH8qroZbqem6NYSRsGRCD7dzp8Ew@mail.gmail.com>

On 5/28/20 12:13 PM, Peter Maydell wrote:

>> v2: fix iotest 190 to not be as sensitive to different sparseness of
>> qcow2 file on various filesystems, such as FreeBSD (sending only the
>> changed patch)
>>
>> ----------------------------------------------------------------
>> bitmaps patches for 2020-05-26
>>
>> - fix non-blockdev migration of bitmaps when mirror job is in use
>> - add bitmap sizing to 'qemu-img measure'
>> - add 'qemu-img convert --bitmaps'
>>
> 
> Your fix for iotest 190 doesn't seem to work. Here's the new output
> (same on openbsd, freebsd, netbsd):

> -required size: SIZE
> +required size: 17170432
>   fully allocated size: 17170432
>   required size: 335806464
>   fully allocated size: 2199359062016
> 
> I think this is an issue with your sed expression:
> +$QEMU_IMG measure -O qcow2 -f raw "$TEST_IMG" |
> +    sed '/^required size:/ s/[0-9]\+/SIZE/'
> 
> BSD sed seems to strictly implement POSIX basic regexes,
> in which '+' is not handled. Compare:
> 
> $ echo "required size: 17170432" | sed '/^required size:/ s/[0-9]+/SIZE/'
> required size: 17170432
> $
> $ echo "required size: 17170432" | sed '/^required size:/ s/[0-9][0-9]*/SIZE/'
> required size: SIZE

D'oh.  v3 coming up with the long-hand more portable sed usage.

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



      reply	other threads:[~2020-05-28 17:50 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-05-27 21:36 [PULL v2 00/11] bitmaps patches for 2020-05-26 Eric Blake
2020-05-27 21:37 ` [PULL v2 08/11] qcow2: Expose bitmaps' size during measure Eric Blake
2020-05-28 17:13 ` [PULL v2 00/11] bitmaps patches for 2020-05-26 Peter Maydell
2020-05-28 17:49   ` Eric Blake [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=eda79152-942a-fc2d-1859-77aea9c6d497@redhat.com \
    --to=eblake@redhat.com \
    --cc=peter.maydell@linaro.org \
    --cc=qemu-devel@nongnu.org \
    /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).