From: John Snow <jsnow@redhat.com>
To: Vladimir Sementsov-Ogievskiy <vsementsov@virtuozzo.com>,
"qemu-devel@nongnu.org" <qemu-devel@nongnu.org>
Cc: "eblake@redhat.com" <eblake@redhat.com>,
Kevin Wolf <kwolf@redhat.com>,
"qemu-block@nongnu.org" <qemu-block@nongnu.org>,
Max Reitz <mreitz@redhat.com>
Subject: Re: [Qemu-devel] [PATCH 3/5] block/qcow2-bitmap: don't remove bitmaps on reopen
Date: Wed, 6 Mar 2019 10:38:39 -0500 [thread overview]
Message-ID: <77d25e45-9304-f5f0-264a-0514ae45f49c@redhat.com> (raw)
In-Reply-To: <2329eba6-bba0-46ea-7960-b19eb16623d4@virtuozzo.com>
On 3/6/19 10:28 AM, Vladimir Sementsov-Ogievskiy wrote:
> 06.03.2019 2:43, John Snow wrote:
>> We tend to remove bitmaps when we flush them to disk, but it's not appropriate
>> in all cases. let the reopen mechanism use the lighter weight flush instead of
>> the heavier store.
>>
>> Signed-off-by: John Snow <jsnow@redhat.com>
>> ---
>> block/qcow2-bitmap.c | 2 +-
>> 1 file changed, 1 insertion(+), 1 deletion(-)
>>
>> diff --git a/block/qcow2-bitmap.c b/block/qcow2-bitmap.c
>> index 4e11b6b05a..9373055d3b 100644
>> --- a/block/qcow2-bitmap.c
>> +++ b/block/qcow2-bitmap.c
>> @@ -1560,7 +1560,7 @@ int qcow2_reopen_bitmaps_ro(BlockDriverState *bs, Error **errp)
>> BdrvDirtyBitmap *bitmap;
>> Error *local_err = NULL;
>>
>> - qcow2_store_persistent_dirty_bitmaps(bs, &local_err);
>> + qcow2_flush_persistent_dirty_bitmaps(bs, &local_err);
>> if (local_err != NULL) {
>> error_propagate(errp, local_err);
>> return -EINVAL;
>>
>
>
> hmm will it work? if we call qcow2_open after that, it will fail to load bitmaps, as they
> are already exist
>
Hmm, maybe you're right. I didn't test this very well. It seemed wrong
to me so I "fixed" it... let me write a test that covers this.
next prev parent reply other threads:[~2019-03-06 15:38 UTC|newest]
Thread overview: 33+ messages / expand[flat|nested] mbox.gz Atom feed top
2019-03-05 23:43 [Qemu-devel] [PATCH 0/5] block/qcow2-bitmap: Enable resize with persistent bitmaps John Snow
2019-03-05 23:43 ` [Qemu-devel] [PATCH 1/5] block/qcow2-bitmap: Skip length check in some cases John Snow
2019-03-06 12:34 ` Eric Blake
2019-03-06 15:21 ` Vladimir Sementsov-Ogievskiy
2019-03-06 15:35 ` John Snow
2019-03-06 16:07 ` Vladimir Sementsov-Ogievskiy
2019-03-08 22:10 ` John Snow
2019-03-05 23:43 ` [Qemu-devel] [PATCH 2/5] block/qcow2-bitmap: Allow bitmap flushing John Snow
2019-03-06 12:58 ` Eric Blake
2019-03-06 15:59 ` John Snow
2019-03-06 16:12 ` Vladimir Sementsov-Ogievskiy
2019-03-08 22:11 ` John Snow
2019-03-05 23:43 ` [Qemu-devel] [PATCH 3/5] block/qcow2-bitmap: don't remove bitmaps on reopen John Snow
2019-03-06 15:28 ` Vladimir Sementsov-Ogievskiy
2019-03-06 15:38 ` John Snow [this message]
2019-03-05 23:43 ` [Qemu-devel] [PATCH 4/5] block/qcow2-bitmap: Allow resizes with persistent bitmaps John Snow
2019-03-06 15:33 ` Vladimir Sementsov-Ogievskiy
2019-03-06 15:36 ` Eric Blake
2019-03-06 15:44 ` Vladimir Sementsov-Ogievskiy
2019-03-06 15:41 ` John Snow
2019-03-06 15:52 ` Vladimir Sementsov-Ogievskiy
2019-03-06 15:56 ` Vladimir Sementsov-Ogievskiy
2019-03-09 0:35 ` John Snow
2019-03-05 23:43 ` [Qemu-devel] [PATCH 5/5] tests/qemu-iotests: add bitmap resize test 246 John Snow
2019-03-06 0:02 ` [Qemu-devel] [PATCH 0/5] block/qcow2-bitmap: Enable resize with persistent bitmaps John Snow
2019-03-10 16:50 ` no-reply
2019-03-11 16:18 ` Eric Blake
2019-03-11 17:36 ` Vladimir Sementsov-Ogievskiy
2019-03-11 17:48 ` Eric Blake
2019-03-11 18:05 ` Vladimir Sementsov-Ogievskiy
2019-03-11 18:05 ` John Snow
2019-03-11 18:26 ` Vladimir Sementsov-Ogievskiy
2019-03-11 18:35 ` John Snow
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=77d25e45-9304-f5f0-264a-0514ae45f49c@redhat.com \
--to=jsnow@redhat.com \
--cc=eblake@redhat.com \
--cc=kwolf@redhat.com \
--cc=mreitz@redhat.com \
--cc=qemu-block@nongnu.org \
--cc=qemu-devel@nongnu.org \
--cc=vsementsov@virtuozzo.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).