Received: from eggs.gnu.org ([2001:4830:134:3::10]:58101) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1X1YEg-0004z7-S2 for qemu-devel@nongnu.org; Mon, 30 Jun 2014 05:50:55 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1X1YEe-0000dN-1T for qemu-devel@nongnu.org; Mon, 30 Jun 2014 05:50:54 -0400 Received: from mx1.redhat.com ([209.132.183.28]:1947) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1X1YEd-0000d3-Io for qemu-devel@nongnu.org; Mon, 30 Jun 2014 05:50:51 -0400 Received: from int-mx11.intmail.prod.int.phx2.redhat.com (int-mx11.intmail.prod.int.phx2.redhat.com [10.5.11.24]) by mx1.redhat.com (8.14.4/8.14.4) with ESMTP id s5U9ooCh027654 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK) for ; Mon, 30 Jun 2014 05:50:50 -0400 Date: Mon, 30 Jun 2014 11:50:49 +0200 From: Kevin Wolf Message-ID: <20140630095049.GB4334@noname.str.redhat.com> References: <1402167080-20316-1-git-send-email-mreitz@redhat.com> <53ADEB0A.4010504@redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <53ADEB0A.4010504@redhat.com> Subject: Re: [Qemu-devel] [PATCH v8 00/14] qemu-img: Implement commit like QMP List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Max Reitz Cc: qemu-devel@nongnu.org, Stefan Hajnoczi Am 28.06.2014 um 00:07 hat Max Reitz geschrieben: > On 07.06.2014 20:51, Max Reitz wrote: > >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). > > > > > >With Stefan's pull request for his dataplane series now out, I thought > >this a good opportunity to send a rebase of this series. > > Ping; Hu Tao will need "minimal_blob_size()" from patch 3 for the > next iteration of his "qemu-img: add preallocation=full" series. > Sending an own patch just for that function seems infeasible, as it > is a static function which would be unused in the meantime (which > throws a compiler warning and an error thanks to -Werror). Using > __attribute__((unused)) just for this seems like a hack; especially > considering that all patches of this series have been reviewed and > it should therefore be ready to merge. > > In case there are some objections because you want to test it more, > it would be fine to merge the first three patches (which suffice for > the preallocation series and should only introduce unused codepaths) > now and the rest later on. This series needs rebasing from patch 5 on. I'll review patches 1-3 so that the dependency for the other series is there. Kevin