All of lore.kernel.org
 help / color / mirror / Atom feed
From: Paolo Bonzini <pbonzini@redhat.com>
To: "Benoît Canet" <benoit.canet@irqsave.net>, qemu-devel@nongnu.org
Cc: kwolf@redhat.com, Benoit Canet <benoit@irqsave.net>,
	stefanha@redhat.com, mreitz@redhat.com
Subject: Re: [Qemu-devel] [PATCH] block: Rewrite the snapshot authorization mechanism for block filters.
Date: Mon, 03 Mar 2014 19:35:13 +0100	[thread overview]
Message-ID: <5314CB61.7090401@redhat.com> (raw)
In-Reply-To: <1393870294-19351-2-git-send-email-benoit.canet@irqsave.net>

Il 03/03/2014 19:11, Benoît Canet ha scritto:
> diff --git a/block/blkverify.c b/block/blkverify.c
> index b98b08b..e1c3117 100644
> --- a/block/blkverify.c
> +++ b/block/blkverify.c
> @@ -288,6 +288,20 @@ static BlockDriverAIOCB *blkverify_aio_flush(BlockDriverState *bs,
>      return bdrv_aio_flush(s->test_file, cb, opaque);
>  }
>
> +static bool blkverify_recurse_is_first_non_filter(BlockDriverState *bs,
> +                                                  BlockDriverState *candidate)
> +{
> +    BDRVBlkverifyState *s = bs->opaque;
> +
> +    bool perm = bdrv_recurse_is_first_non_filter(bs->file, candidate);
> +
> +    if (perm) {
> +        return true;
> +    }
> +
> +    return bdrv_recurse_is_first_non_filter(s->test_file, candidate);

Thanks!  Is this a silent bugfix? :)

It is a behavior change from before, because BS_FILTER_PASS_DOWN only 
tested bs->file.

Paolo

  reply	other threads:[~2014-03-03 18:35 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-03-03 18:11 [Qemu-devel] [PATCH] Rewrite block filter snapshot authorization mechanism Benoît Canet
2014-03-03 18:11 ` [Qemu-devel] [PATCH] block: Rewrite the snapshot authorization mechanism for block filters Benoît Canet
2014-03-03 18:35   ` Paolo Bonzini [this message]
2014-03-03 19:13     ` Benoît Canet
2014-03-03 21:26       ` Paolo Bonzini
2014-03-10 18:53 ` [Qemu-devel] [PATCH] Rewrite block filter snapshot authorization mechanism Benoît Canet
2014-03-11 18:19 ` Stefan Hajnoczi

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=5314CB61.7090401@redhat.com \
    --to=pbonzini@redhat.com \
    --cc=benoit.canet@irqsave.net \
    --cc=benoit@irqsave.net \
    --cc=kwolf@redhat.com \
    --cc=mreitz@redhat.com \
    --cc=qemu-devel@nongnu.org \
    --cc=stefanha@redhat.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.