[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Qemu-devel] [PATCH v10 3/9] quorum: set supported write flags
From: |
Alberto Garcia |
Subject: |
Re: [Qemu-devel] [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
Re: [Qemu-devel] [PATCH v10 6/9] file-posix: support BDRV_REQ_ALLOCATE, Alberto Garcia, 2018/12/07
[Qemu-devel] [PATCH v10 5/9] block: treat BDRV_REQ_ALLOCATE as serialising, Anton Nefedov, 2018/12/03