[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [PATCH 4/4] iotests/detect-zeroes-registered-buf: add new test
From: |
Eric Blake |
Subject: |
Re: [PATCH 4/4] iotests/detect-zeroes-registered-buf: add new test |
Date: |
Fri, 27 Jan 2023 17:25:48 -0600 |
User-agent: |
NeoMutt/20220429 |
On Thu, Jan 26, 2023 at 03:14:01PM -0500, Stefan Hajnoczi wrote:
> This regression test demonstrates that detect-zeroes works with
> registered buffers. Bug details:
> https://gitlab.com/qemu-project/qemu/-/issues/1404
>
> Signed-off-by: Stefan Hajnoczi <stefanha@redhat.com>
> ---
> .../tests/detect-zeroes-registered-buf | 58 +++++++++++++++++++
> .../tests/detect-zeroes-registered-buf.out | 7 +++
> 2 files changed, 65 insertions(+)
> create mode 100755 tests/qemu-iotests/tests/detect-zeroes-registered-buf
> create mode 100644 tests/qemu-iotests/tests/detect-zeroes-registered-buf.out
>
> diff --git a/tests/qemu-iotests/tests/detect-zeroes-registered-buf
> b/tests/qemu-iotests/tests/detect-zeroes-registered-buf
> new file mode 100755
> index 0000000000..edb5f2cee5
> --- /dev/null
> +++ b/tests/qemu-iotests/tests/detect-zeroes-registered-buf
> @@ -0,0 +1,58 @@
> +#!/usr/bin/env bash
> +# group: rw auto quick
> +#
> +# Check that detect-zeroes=unmap works on writes with registered I/O buffers.
> +# This is a regression test for
> +# https://gitlab.com/qemu-project/qemu/-/issues/1404 where I/O requests
> failed
> +# unexpectedly.
> +#
> +# Copyright Red Hat
Do you need a year or a (C) or similar?
Otherwise,
Reviewed-by: Eric Blake <eblake@redhat.com>
--
Eric Blake, Principal Software Engineer
Red Hat, Inc. +1-919-301-3266
Virtualization: qemu.org | libvirt.org