From: Eric Blake <eblake@redhat.com>
To: Max Reitz <mreitz@redhat.com>, qemu-devel@nongnu.org
Cc: kwolf@redhat.com, eshenitz@redhat.com, vsementsov@virtuozzo.com,
qemu-block@nongnu.org
Subject: Re: [PATCH v2] qemu-img: Support bitmap --merge into backing image
Date: Mon, 21 Sep 2020 17:08:28 -0500 [thread overview]
Message-ID: <c8dfe463-e73d-1497-bf97-de7a0df9bf3f@redhat.com> (raw)
In-Reply-To: <6b3e7ba5-06fc-c733-f635-c1cc41178eea@redhat.com>
On 9/17/20 5:19 AM, Max Reitz wrote:
>>>> temporary over NBD, referring to a bitmap that lives only in Active is
>>>> less effort than having to copy a bitmap into temporary [1]. So the
>>>> testsuite additions in this patch check both where bitmaps get
>>>> allocated (the qemu-img info output), and, when NOT using 'qemu-img
>>>> bitmap', that bitmaps are indeed visible through a backing chain.
>>>
>>> Well. It is useful over NBD but I would doubt that it isn’t useful in
>>> general. For example, the QMP commands that refer to bitmaps always do
>>> so through a node-name + bitmap-name combination, and they require that
>>> the given bitmap is exactly on the given node.
>>>
>>> So I think this is a very much a case-by-case question. (And in
>>> practice, NBD seems to be the outlier, not qemu-img bitmap.)
>>>
>>
>> I'm happy to reword slightly to give that caveat.
>>
>>> The code looks good to me, but I wonder whether in the commit message it
>>> should be noted that we don’t want to let bitmaps from deeper nodes
>>> shine through by default everywhere, but just in specific cases where
>>> that’s useful (i.e. only NBD so far AFAIA).
>>
>> So is this a Reviewed-by? I'm happy to queue it through my bitmaps
>> tree, if so.
>
> It wasn’t meant as an R-b, because my R-b depends on how the commit
> message addresses the question of when exactly bitmaps from the backing
> chain should be visible on the top image. Whether qemu-img bitmap is an
> exception, or whether this is really a case-by-case question.
>
> (I wanted to know whether you agree on including it. Normally, I’m
> happy to give an R-b on the basis of “with that done”, but in this case
> I wasn’t entirely sure whether my request was reasonable, but I also
> felt that in case it was, it wasn’t optional, given that you do have an
> entire paragraph in the commit message dedicated to why the backing
> image’s bitmap is visible on an image exported over NBD.)
Here's my rewording:
However, note that on a case-by-case analysis, there _are_ times where
we treat it as a feature that we can access a bitmap from a backing
layer in association with an overlay BDS. A demonstration of this is
using NBD to expose both an overlay BDS (for constant contents) and a
bitmap (for learning which blocks are interesting) during an
incremental backup:
Base <- Active <- Temporary
\--block job ->/
where Temporary is being fed by a backup 'sync=none' job. When
exposing Temporary over NBD, referring to a bitmap that lives only in
Active is less effort than having to copy a bitmap into Temporary [1].
So the testsuite additions in this patch check both where bitmaps get
allocated (the qemu-img info output), and that qemu-nbd is indeed able
to access a bitmap inherited from the backing chain since it is a
different use case than 'qemu-img bitmap'.
>
> I have to say I would like to see how you do phrase it in the end, but
> given that you do agree on including it, I can give a
>
> Reviewed-by: Max Reitz <mreitz@redhat.com>
>
> Now.
Okay, I think I've met your request, so I'll go ahead and send the pull
request today.
--
Eric Blake, Principal Software Engineer
Red Hat, Inc. +1-919-301-3226
Virtualization: qemu.org | libvirt.org
next prev parent reply other threads:[~2020-09-21 22:09 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-09-14 19:10 [PATCH v2] qemu-img: Support bitmap --merge into backing image Eric Blake
2020-09-15 8:57 ` Max Reitz
2020-09-15 13:31 ` Eric Blake
2020-09-17 10:19 ` Max Reitz
2020-09-21 22:08 ` Eric Blake [this message]
2020-09-16 16:20 ` Vladimir Sementsov-Ogievskiy
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=c8dfe463-e73d-1497-bf97-de7a0df9bf3f@redhat.com \
--to=eblake@redhat.com \
--cc=eshenitz@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).