qemu-block
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Qemu-block] [PATCH v10 3/9] quorum: set supported write flags


From: Alberto Garcia
Subject: Re: [Qemu-block] [PATCH v10 3/9] quorum: set supported write flags
Date: Fri, 07 Dec 2018 15:33:58 +0100
User-agent: Notmuch/0.18.2 (http://notmuchmail.org) Emacs/24.4.1 (i586-pc-linux-gnu)

On Mon 03 Dec 2018 11:14:55 AM CET, Anton Nefedov wrote:
> Signed-off-by: Anton Nefedov <address@hidden>
> ---
>  block/quorum.c | 19 ++++++++++++++++++-
>  1 file changed, 18 insertions(+), 1 deletion(-)
>
> diff --git a/block/quorum.c b/block/quorum.c
> index 16b3c8067c..d21a6a3b8e 100644
> --- a/block/quorum.c
> +++ b/block/quorum.c
> @@ -857,6 +857,19 @@ static QemuOptsList quorum_runtime_opts = {
>      },
>  };
>  
> +static void quorum_set_supported_flags(BlockDriverState *bs)
> +{
> +    BDRVQuorumState *s = bs->opaque;
> +    int i;
> +
> +    bs->supported_write_flags = BDRV_REQ_FUA;
> +    for (i = 0; i < s->num_children; i++) {
> +        bs->supported_write_flags &= 
> s->children[i]->bs->supported_write_flags;
> +    }
> +
> +    bs->supported_write_flags |= BDRV_REQ_WRITE_UNCHANGED;
> +}

You don't set supported_zero_flags here anymore ?

Berto



reply via email to

[Prev in Thread] Current Thread [Next in Thread]