From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:45295) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WsK5R-0002Uk-JC for qemu-devel@nongnu.org; Wed, 04 Jun 2014 18:55:21 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1WsK5M-0003Gu-M4 for qemu-devel@nongnu.org; Wed, 04 Jun 2014 18:55:13 -0400 Received: from mx1.redhat.com ([209.132.183.28]:5766) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WsK5M-0003Dx-48 for qemu-devel@nongnu.org; Wed, 04 Jun 2014 18:55:08 -0400 Received: from int-mx12.intmail.prod.int.phx2.redhat.com (int-mx12.intmail.prod.int.phx2.redhat.com [10.5.11.25]) by mx1.redhat.com (8.14.4/8.14.4) with ESMTP id s54Mt5AR010688 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK) for ; Wed, 4 Jun 2014 18:55:06 -0400 Message-ID: <538FA3C8.7000108@redhat.com> Date: Wed, 04 Jun 2014 16:55:04 -0600 From: Eric Blake MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="8q8rNOkWXKRQQHv8ibIkQlDaXngs2xG9t" Subject: [Qemu-devel] active block commit bug? List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: "qemu-devel@nongnu.org" , Fam Zheng , Jeff Cody This is an OpenPGP/MIME signed message (RFC 4880 and 3156) --8q8rNOkWXKRQQHv8ibIkQlDaXngs2xG9t Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable 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=3Df <=3D {"QMP": {"version": {"qemu": {"micro": 0, "minor": 0, "major": 2}, "package": ""}, "capabilities": []}} {"execute":"qmp_capabilities"} <=3D {"return": {}} {"execute":"blockdev-snapshot-sync","arguments":{"device":"ide0-hd0","sna= pshot-file":"g"}} Formatting 'g', fmt=3Dqcow2 size=3D0 backing_file=3D'f' backing_fmt=3D'ra= w' encryption=3Doff cluster_size=3D65536 lazy_refcounts=3Doff <=3D {"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"}} <=3D {"return": {}} {"execute":"query-block-jobs"} <=3D {"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? --=20 Eric Blake eblake redhat com +1-919-301-3266 Libvirt virtualization library http://libvirt.org --8q8rNOkWXKRQQHv8ibIkQlDaXngs2xG9t Content-Type: application/pgp-signature; name="signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG v1 Comment: Public key at http://people.redhat.com/eblake/eblake.gpg Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/ iQEcBAEBCAAGBQJTj6PIAAoJEKeha0olJ0Nq3yAIAJr1CjkwJdVScWJD/Cwpg36r E3xeN1Dy9nzbXLHR3cknWTwhSn9BrjW86QPDSCF3Pa30Gedq4+I9CzFDt1PzScnt jtBASQEfbl2ML2b/lq0ZVtzpeA5nTX2FcI4zhOUYM2I4yISGkwAhEKOaQXYKJPsL RooI8YdZMpziR6HzO3XFmFEYexKCal4xqusuutkg8H0GM8cNpI1LZC95SxVd3Zys UI8zSRcdMWkAV9/XieLlLulfhzG3/idlMLF4NM8kZB0DAFYPwYJmIgGiW+oEOK84 j1S8KZgXEiitWz7WJ5ffsx7E2JB1mly3sPt8U6TLCzUcWK9mciG1hjQi3tJE9rA= =Ptle -----END PGP SIGNATURE----- --8q8rNOkWXKRQQHv8ibIkQlDaXngs2xG9t--