From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:33341) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WXE21-00020t-Fa for qemu-devel@nongnu.org; Mon, 07 Apr 2014 14:12:35 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1WXE1v-0005sw-Ar for qemu-devel@nongnu.org; Mon, 07 Apr 2014 14:12:29 -0400 Received: from mx1.redhat.com ([209.132.183.28]:42103) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WXE1v-0005sp-2U for qemu-devel@nongnu.org; Mon, 07 Apr 2014 14:12:23 -0400 Received: from int-mx01.intmail.prod.int.phx2.redhat.com (int-mx01.intmail.prod.int.phx2.redhat.com [10.5.11.11]) by mx1.redhat.com (8.14.4/8.14.4) with ESMTP id s37ICLSY018194 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK) for ; Mon, 7 Apr 2014 14:12:22 -0400 From: Max Reitz Date: Mon, 7 Apr 2014 19:29:56 +0200 Message-Id: <1396891800-8627-1-git-send-email-mreitz@redhat.com> Subject: [Qemu-devel] [PATCH 0/4] qemu-img: Implement commit like QMP List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Cc: Kevin Wolf , Stefan Hajnoczi , Max Reitz qemu-img should use QMP commands whenever possible in order to ensure feature completeness of both online and offline image operations. For the "commit" command, this is relatively easy, so implement it first (in the hope that indeed others will follow). As qemu-img does not have access to QMP (due to QMP being intertwined with basically everything in qemu), we cannot directly use QMP, but at least use the functions the corresponding QMP commands are using (which would be "block-commit", in this case). Max Reitz (4): block-commit: Expose granularity block-commit: speed is an optional parameter qemu-img: Implement commit like QMP qemu-img: Enable progress output for commit block/Makefile.objs | 2 +- block/commit.c | 16 ++++++-- block/mirror.c | 4 +- blockdev.c | 22 +++++++--- include/block/block_int.h | 6 ++- qapi-schema.json | 5 ++- qemu-img-cmds.hx | 4 +- qemu-img.c | 100 ++++++++++++++++++++++++++++++++++++---------- qemu-img.texi | 2 +- 9 files changed, 122 insertions(+), 39 deletions(-) -- 1.9.1