qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
* [Qemu-devel] active block commit bug?
@ 2014-06-04 22:55 Eric Blake
  2014-06-05  0:12 ` Jeff Cody
  0 siblings, 1 reply; 10+ messages in thread
From: Eric Blake @ 2014-06-04 22:55 UTC (permalink / raw)
  To: qemu-devel@nongnu.org, Fam Zheng, Jeff Cody

[-- Attachment #1: Type: text/plain, Size: 1406 bytes --]

Testing on Fedora 20 (JSON output slightly modified for legibility):

$ qemu-kvm --version
QEMU emulator version 2.0.0, Copyright (c) 2003-2008 Fabrice Bellard
$ touch f
$ qemu-kvm -qmp stdio -drive file=f
 <= {"QMP": {"version": {"qemu": {"micro": 0, "minor": 0, "major": 2},
"package": ""}, "capabilities": []}}

{"execute":"qmp_capabilities"}
 <= {"return": {}}

{"execute":"blockdev-snapshot-sync","arguments":{"device":"ide0-hd0","snapshot-file":"g"}}
Formatting 'g', fmt=qcow2 size=0 backing_file='f' backing_fmt='raw'
encryption=off cluster_size=65536 lazy_refcounts=off
 <= {"return": {}}

{"execute":"block-commit","arguments":{"device":"ide0-hd0","top":"g"}}
{"timestamp": {"seconds": 1401921011, "microseconds": 498888}, "event":
"BLOCK_JOB_COMPLETED", "data": {"device": "ide0-hd0", "len": 0,
"offset": 0, "speed": 0, "type": "commit"}}
 <= {"return": {}}

{"execute":"query-block-jobs"}
 <= {"return": []}

Huh? I thought that an active commit was not supposed to complete
automatically, but that the job would remain around until I either
'block-job-cancel' or 'block-job-complete' it.  That is, I should have
gotten a BLOCK_JOB_READY event and still see the job when I query for
it.  Where am I going wrong, or did I uncover a bug in active commit?

-- 
Eric Blake   eblake redhat com    +1-919-301-3266
Libvirt virtualization library http://libvirt.org


[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 604 bytes --]

^ permalink raw reply	[flat|nested] 10+ messages in thread

end of thread, other threads:[~2014-06-06  5:30 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-06-04 22:55 [Qemu-devel] active block commit bug? Eric Blake
2014-06-05  0:12 ` Jeff Cody
2014-06-05  1:54   ` Eric Blake
2014-06-05  2:09     ` Fam Zheng
2014-06-05  2:55       ` Eric Blake
2014-06-05  3:07         ` Fam Zheng
2014-06-05  7:06         ` Markus Armbruster
2014-06-05  8:25           ` Kevin Wolf
2014-06-05  9:21             ` Markus Armbruster
2014-06-06  5:30           ` Amos Kong

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).