[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [PULL v2 00/11] bitmaps patches for 2020-05-26
From: |
Peter Maydell |
Subject: |
Re: [PULL v2 00/11] bitmaps patches for 2020-05-26 |
Date: |
Thu, 28 May 2020 18:13:01 +0100 |
On Wed, 27 May 2020 at 22:38, Eric Blake <eblake@redhat.com> wrote:
>
> The following changes since commit 06539ebc76b8625587aa78d646a9d8d5fddf84f3:
>
> Merge remote-tracking branch
> 'remotes/philmd-gitlab/tags/mips-hw-next-20200526' into staging (2020-05-26
> 20:25:06 +0100)
>
> are available in the Git repository at:
>
> https://repo.or.cz/qemu/ericb.git tags/pull-bitmaps-2020-05-26-v2
>
> for you to fetch changes up to 958796e47d3af10ece329294a7bb41d5853667db:
>
> iotests: Add test 291 to for qemu-img bitmap coverage (2020-05-27 16:19:59
> -0500)
>
> 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):
TEST iotest-qcow2: 190 [fail]
QEMU --
"/home/qemu/qemu-test.B2aJfj/build/tests/qemu-iotests/../../aarch64-softmmu/qemu-system-aarch64"
-nodefaults -display none -machine virt -accel qtest
QEMU_IMG --
"/home/qemu/qemu-test.B2aJfj/build/tests/qemu-iotests/../../qemu-img"
QEMU_IO --
"/home/qemu/qemu-test.B2aJfj/build/tests/qemu-iotests/../../qemu-io"
--cache writeback --aio threads -f qcow2
QEMU_NBD --
"/home/qemu/qemu-test.B2aJfj/build/tests/qemu-iotests/../../qemu-nbd"
IMGFMT -- qcow2 (compat=1.1)
IMGPROTO -- file
PLATFORM -- OpenBSD/amd64 openbsd 6.6
TEST_DIR -- /home/qemu/qemu-test.B2aJfj/build/tests/qemu-iotests/scratch
SOCK_DIR -- /tmp/tmp.9459w4OTae
SOCKET_SCM_HELPER --
--- /home/qemu/qemu-test.B2aJfj/src/tests/qemu-iotests/190.out Thu
May 28 16:06:04 2020
+++ /home/qemu/qemu-test.B2aJfj/build/tests/qemu-iotests/190.out.bad
Thu May 28 16:31:13 2020
@@ -17,7 +17,7 @@
fully allocated size: 10813440
required size: 2199023255552
fully allocated size: 2199023255552
-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
thanks
-- PMM