[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Qemu-devel] [PATCH v4 for-2.10 01/15] mirror: inherit supported wri
From: |
Eric Blake |
Subject: |
Re: [Qemu-devel] [PATCH v4 for-2.10 01/15] mirror: inherit supported write/zero flags |
Date: |
Fri, 4 Aug 2017 10:13:59 -0500 |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.2.1 |
On 08/01/2017 09:18 AM, Anton Nefedov wrote:
> Signed-off-by: Anton Nefedov <address@hidden>
> ---
> block/mirror.c | 5 +++++
> 1 file changed, 5 insertions(+)
I think this one counts as a bug fix worthy of inclusion in 2.10.
Reviewed-by: Eric Blake <address@hidden>
>
> diff --git a/block/mirror.c b/block/mirror.c
> index d46dace..7e539f1 100644
> --- a/block/mirror.c
> +++ b/block/mirror.c
> @@ -1056,6 +1056,11 @@ static void
> bdrv_mirror_top_refresh_filename(BlockDriverState *bs, QDict *opts)
> bdrv_refresh_filename(bs->backing->bs);
> pstrcpy(bs->exact_filename, sizeof(bs->exact_filename),
> bs->backing->bs->filename);
> + bs->supported_write_flags = BDRV_REQ_FUA &
> + bs->backing->bs->supported_write_flags;
> + bs->supported_zero_flags =
> + (BDRV_REQ_FUA | BDRV_REQ_MAY_UNMAP) &
> + bs->backing->bs->supported_zero_flags;
> }
>
> static void bdrv_mirror_top_close(BlockDriverState *bs)
>
--
Eric Blake, Principal Software Engineer
Red Hat, Inc. +1-919-301-3266
Virtualization: qemu.org | libvirt.org
signature.asc
Description: OpenPGP digital signature
- [Qemu-devel] [PATCH v4 00/15] qcow2: space preallocation and COW improvements, Anton Nefedov, 2017/08/01
- [Qemu-devel] [PATCH v4 04/15] block: treat BDRV_REQ_ALLOCATE as serialising, Anton Nefedov, 2017/08/01
- [Qemu-devel] [PATCH v4 08/15] qcow2: set inactive flag, Anton Nefedov, 2017/08/01
- [Qemu-devel] [PATCH v4 07/15] qcow2: preallocation at image expand, Anton Nefedov, 2017/08/01
- [Qemu-devel] [PATCH v4 01/15] mirror: inherit supported write/zero flags, Anton Nefedov, 2017/08/01
- Re: [Qemu-devel] [PATCH v4 for-2.10 01/15] mirror: inherit supported write/zero flags,
Eric Blake <=
- [Qemu-devel] [PATCH v4 06/15] block: support BDRV_REQ_ALLOCATE in passthrough drivers, Anton Nefedov, 2017/08/01
- [Qemu-devel] [PATCH v4 05/15] file-posix: support BDRV_REQ_ALLOCATE, Anton Nefedov, 2017/08/01
- [Qemu-devel] [PATCH v4 09/15] qcow2: truncate preallocated space, Anton Nefedov, 2017/08/01
- [Qemu-devel] [PATCH v4 03/15] block: introduce BDRV_REQ_ALLOCATE flag, Anton Nefedov, 2017/08/01
- [Qemu-devel] [PATCH v4 02/15] blkverify: set supported write/zero flags, Anton Nefedov, 2017/08/01