[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Qemu-block] [PATCH v8 1/9] mirror: inherit supported write/zero fla
From: |
Alberto Garcia |
Subject: |
Re: [Qemu-block] [PATCH v8 1/9] mirror: inherit supported write/zero flags |
Date: |
Fri, 16 Mar 2018 11:35:05 +0100 |
User-agent: |
Notmuch/0.18.2 (http://notmuchmail.org) Emacs/24.4.1 (i586-pc-linux-gnu) |
On Mon 12 Mar 2018 11:16:50 AM CET, Anton Nefedov wrote:
> Signed-off-by: Anton Nefedov <address@hidden>
> ---
> block/mirror.c | 11 +++++++++++
> 1 file changed, 11 insertions(+)
>
> diff --git a/block/mirror.c b/block/mirror.c
> index f5bf620..2fb786f 100644
> --- a/block/mirror.c
> +++ b/block/mirror.c
> @@ -1100,6 +1100,15 @@ static BlockDriver bdrv_mirror_top = {
> .bdrv_child_perm = bdrv_mirror_top_child_perm,
> };
>
> +static void mirror_top_set_supported_flags(BlockDriverState *bs)
> +{
> + 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;
> +}
> +
Reviewed-by: Alberto Garcia <address@hidden>
Berto
- [Qemu-block] [PATCH v8 0/9] qcow2: cluster space preallocation, Anton Nefedov, 2018/03/12
- [Qemu-block] [PATCH v8 2/9] blkverify: set supported write/zero flags, Anton Nefedov, 2018/03/12
- [Qemu-block] [PATCH v8 1/9] mirror: inherit supported write/zero flags, Anton Nefedov, 2018/03/12
- Re: [Qemu-block] [PATCH v8 1/9] mirror: inherit supported write/zero flags,
Alberto Garcia <=
- [Qemu-block] [PATCH v8 4/9] block: introduce BDRV_REQ_ALLOCATE flag, Anton Nefedov, 2018/03/12
- [Qemu-block] [PATCH v8 3/9] quorum: set supported write/zero flags, Anton Nefedov, 2018/03/12
- [Qemu-block] [PATCH v8 9/9] iotest 134: test cluster-misaligned encrypted write, Anton Nefedov, 2018/03/12
- [Qemu-block] [PATCH v8 6/9] file-posix: support BDRV_REQ_ALLOCATE, Anton Nefedov, 2018/03/12
- [Qemu-block] [PATCH v8 8/9] qcow2: skip writing zero buffers to empty COW areas, Anton Nefedov, 2018/03/12