Received: from eggs.gnu.org ([2001:4830:134:3::10]:39488) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1V8mHw-0005ve-Uc for qemu-devel@nongnu.org; Mon, 12 Aug 2013 03:11:37 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1V8mHw-00052x-3x for qemu-devel@nongnu.org; Mon, 12 Aug 2013 03:11:36 -0400 Received: from mail.avalus.com ([2001:41c8:10:1dd::10]:53147) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1V8mHv-00052n-Tx for qemu-devel@nongnu.org; Mon, 12 Aug 2013 03:11:36 -0400 Mime-Version: 1.0 (Apple Message framework v1085) Content-Type: text/plain; charset=us-ascii From: Alex Bligh In-Reply-To: <20130812062254.GA17682@localhost.localdomain> Date: Mon, 12 Aug 2013 08:11:24 +0100 Content-Transfer-Encoding: quoted-printable Message-Id: <228751DE-CEEE-48F2-AF91-3E5DC574ECB3@alex.org.uk> References: <1376242292-8345-1-git-send-email-alex@alex.org.uk> <20130812062254.GA17682@localhost.localdomain> Subject: Re: [Qemu-devel] [PATCH] add qemu-img convert -C option (skip target volume creation) List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: famz@redhat.com Cc: Kevin Wolf , Alexandre Derumier , qemu-devel@nongnu.org, Alex Bligh On 12 Aug 2013, at 07:22, Fam Zheng wrote: >> --- a/qemu-img.c >> +++ b/qemu-img.c >> @@ -103,6 +103,7 @@ static void help(void) >> " '-S' indicates the consecutive number of bytes that = must contain only zeros\n" >> " for qemu-img to create a sparse image during = conversion\n" >> " '--output' takes the format in which the output must be = done (human or json)\n" >> + " '-C' skips the target volume creation (useful for = rbd)\n" >=20 > The statement "useful for rbd" is not very informative, maybe you = could > use "'-C' skips the target volume creation (assuming it already = exists)". Done with slightly different text - see v2 just posted >> static int img_convert(int argc, char **argv) >> { >> - int c, ret =3D 0, n, n1, bs_n, bs_i, compress, cluster_size, = cluster_sectors; >> + int c, ret =3D 0, n, n1, bs_n, bs_i, compress, cluster_size, = cluster_sectors, skipcreate; >=20 > This line is too long, please break it. Done in v2 just posted. --=20 Alex Bligh