From: "Benoît Canet" <benoit.canet@irqsave.net>
To: Paolo Bonzini <pbonzini@redhat.com>
Cc: "Benoît Canet" <benoit.canet@irqsave.net>,
kwolf@redhat.com, qemu-devel@nongnu.org, stefanha@redhat.com,
mreitz@redhat.com
Subject: Re: [Qemu-devel] [PATCH] block: Rewrite the snapshot authorization mechanism for block filters.
Date: Mon, 3 Mar 2014 20:13:28 +0100 [thread overview]
Message-ID: <20140303191327.GA3796@irqsave.net> (raw)
In-Reply-To: <5314CB61.7090401@redhat.com>
The Monday 03 Mar 2014 à 19:35:13 (+0100), Paolo Bonzini wrote :
> 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.
Hmm I did not even though it was a bug, I merely rewrote the code to adapt to
the new way of doing.
Should I mention the bugfix and repost ?
Best regards
Benoît
>
> Paolo
next prev parent reply other threads:[~2014-03-03 19:13 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
2014-03-03 19:13 ` Benoît Canet [this message]
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=20140303191327.GA3796@irqsave.net \
--to=benoit.canet@irqsave.net \
--cc=kwolf@redhat.com \
--cc=mreitz@redhat.com \
--cc=pbonzini@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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).