From: Kashyap Chamarthy <kchamart@redhat.com>
To: John Snow <jsnow@redhat.com>
Cc: qemu-devel@nongnu.org, qemu-block@nongnu.org, armbru@redhat.com,
mreitz@redhat.com
Subject: Re: [Qemu-devel] [Qemu-block] [PATCH v2] qapi: block-core: Clarify events emitted by 'block-job-cancel'
Date: Wed, 15 Nov 2017 22:54:33 +0100 [thread overview]
Message-ID: <20171115215433.fpihpl645mlholgo@eukaryote> (raw)
In-Reply-To: <0b29e074-6548-d42e-12ab-67419342773e@redhat.com>
On Wed, Nov 15, 2017 at 02:15:57PM -0500, John Snow wrote:
>
>
> On 11/15/2017 04:09 AM, Kashyap Chamarthy wrote:
> > When you cancel an in-progress live block operation with QMP
> > `block-job-cancel`, it emits the event: BLOCK_JOB_CANCELLED. However,
> > when `block-job-cancel` is issued after `drive-mirror` has indicated (by
> > emitting the event BLOCK_JOB_READY) that the source and destination
> > remain synchronized:
[...]
> > But this is expected behaviour, where the _COMPLETED event indicates
> > that synchronization has successfully ended (and the destination has a
> > point-in-time copy, which is at the time of cancel).
> >
> > So add a small note to this effect. (Thanks: Max Reitz for reminding
> > me of this on IRC.)
> >
>
> I suppose this difference probably isn't covered in what was the
> bitmaps.md doc file (we don't bother covering mirror there, only
> backup);
Your supposition is correct: Looking at the now-renamed
'bitmaps.rst'[1], it isn't covered there.
> is it covered sufficiently in live-block-operations.rst ?
I looked in there[2] too. Short answer: no. Long: In the "Live disk
synchronization — drive-mirror and blockdev-mirror" section, I simply
seemed to declare:
"Issuing the command ``block-job-cancel`` after it emits the event
``BLOCK_JOB_CANCELLED``"
As if that's the *only* event it emits, which is clearly not the case.
So while at it, wonder if should I also update it
('live-block-operations.rst') too.
[1] https://git.qemu.org/?p=qemu.git;a=blob;f=docs/interop/bitmaps.rst
[2] https://git.qemu.org/?p=qemu.git;a=blob;f=docs/interop/live-block-operations.rst#l513
--
/kashyap
next prev parent reply other threads:[~2017-11-15 21:54 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-11-15 9:09 [Qemu-devel] [PATCH v2] qapi: block-core: Clarify events emitted by 'block-job-cancel' Kashyap Chamarthy
2017-11-15 19:15 ` [Qemu-devel] [Qemu-block] " John Snow
2017-11-15 21:54 ` Kashyap Chamarthy [this message]
2017-11-15 21:56 ` John Snow
2017-11-16 9:14 ` Kashyap Chamarthy
2017-11-16 21:39 ` John Snow
2017-11-17 10:49 ` Kevin Wolf
2017-11-17 11:18 ` Kashyap Chamarthy
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=20171115215433.fpihpl645mlholgo@eukaryote \
--to=kchamart@redhat.com \
--cc=armbru@redhat.com \
--cc=jsnow@redhat.com \
--cc=mreitz@redhat.com \
--cc=qemu-block@nongnu.org \
--cc=qemu-devel@nongnu.org \
/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).