Received: from eggs.gnu.org ([140.186.70.92]:45130) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QWsNa-00089V-FH for qemu-devel@nongnu.org; Wed, 15 Jun 2011 11:51:44 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1QWsNV-0005fl-Sw for qemu-devel@nongnu.org; Wed, 15 Jun 2011 11:51:42 -0400 Received: from mx1.redhat.com ([209.132.183.28]:35596) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QWsNV-0005ey-4f for qemu-devel@nongnu.org; Wed, 15 Jun 2011 11:51:37 -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 p5FFpY5i029224 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK) for ; Wed, 15 Jun 2011 11:51:35 -0400 Date: Wed, 15 Jun 2011 12:51:20 -0300 From: Marcelo Tosatti Message-ID: <20110615155120.GB12994@amt.cnet> References: <20110606165536.581119615@amt.cnet> <20110606165823.855959321@amt.cnet> <20110606170344.GA30636@amt.cnet> <20110607101555.GO514380@orkuz.home> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20110607101555.GO514380@orkuz.home> Subject: Re: [Qemu-devel] [patch 6/7] QEMU live block copy (update) List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Jiri Denemark Cc: kwolf@redhat.com, Jes.Sorensen@redhat.com, dlaor@redhat.com, qemu-devel@nongnu.org, avi@redhat.com On Tue, Jun 07, 2011 at 12:15:55PM +0200, Jiri Denemark wrote: > On Mon, Jun 06, 2011 at 14:03:44 -0300, Marcelo Tosatti wrote: > ... > > + "return":[ > > + {"device":"ide1-hd0", > > + "status":"active", > > + "info":{ > > + "percentage":23, > > + } > > + }, > > What about using the same form of progress reporting as used by query-migrate? > That is, instead of > > "info":{ > "percentage":23 > } > > the following would be reported: > > "disk":{ > "transferred":123, > "remaining":123, > "total":246 > } > > One can trivially compute percentage from that but it's impossible to get this > kind of data when only percentage is reported. And total can even change in > time if needed (just like it changes during migration). Done. > > + {"device":"ide1-hd1", > > + "status":"failed" > > + } > > Is there any way we can get the exact error which made it fail, such as EPERM > or ENOSPC? The errors that can generate "failed" here are internal to QEMU, so i don't think exporting them to management application makes sense. This are errors such as EIO from file system. Error processing should be done in the block_copy command, that is where checks of the destination image are performed.