Received: from eggs.gnu.org ([2001:4830:134:3::10]:37941) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VGmyx-0004sN-TK for qemu-devel@nongnu.org; Tue, 03 Sep 2013 05:33:12 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1VGmyt-0002dG-Os for qemu-devel@nongnu.org; Tue, 03 Sep 2013 05:33:07 -0400 Received: from mx1.redhat.com ([209.132.183.28]:49293) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VGmyt-0002d9-GE for qemu-devel@nongnu.org; Tue, 03 Sep 2013 05:33:03 -0400 Date: Tue, 3 Sep 2013 11:32:48 +0200 From: Stefan Hajnoczi Message-ID: <20130903093248.GC21758@stefanha-thinkpad.redhat.com> References: <1378145244-8680-1-git-send-email-alex@alex.org.uk> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1378145244-8680-1-git-send-email-alex@alex.org.uk> Subject: Re: [Qemu-devel] [PATCHv7] add qemu-img convert -n option (skip target volume creation) List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Alex Bligh Cc: Kevin Wolf , Anthony Liguori , Fam Zheng , qemu-devel@nongnu.org, Alexandre Derumier , Paolo Bonzini On Mon, Sep 02, 2013 at 07:07:24PM +0100, Alex Bligh wrote: > From: Alexandre Derumier > > Add a -n option to skip volume creation on qemu-img convert. > This is useful for targets such as rbd / ceph, where the > target volume may already exist; we cannot always rely on > qemu-img convert to create the image, as dependent on the > output format, there may be parameters which are not possible > to specify through the qemu-img convert command line. > > Reviewed-by: Eric Blake > Signed-off-by: Alexandre Derumier > Signed-off-by: Alex Bligh > --- > > Changes since v6: > * Check for outut file too short using bdrv_getlength (Stefan H) > * Remove spurious comment re compression from test (Stefan H) > * Remove unused variables from test (Stefan H) > > Changes since v5: > * Change order of case statement for -n to be after -q > * Add my own copyright string (per Eric Blake) > > qemu-img-cmds.hx | 4 +- > qemu-img.c | 53 +++++++++++++++++------- > qemu-img.texi | 15 ++++++- > tests/qemu-iotests/060 | 97 ++++++++++++++++++++++++++++++++++++++++++++ > tests/qemu-iotests/060.out | 10 +++++ > tests/qemu-iotests/group | 1 + > 6 files changed, 162 insertions(+), 18 deletions(-) Due to the collision with Max's 060 I changed your test case number to 063. Thanks, applied to my block tree: https://github.com/stefanha/qemu/commits/block Stefan