Received: from [140.186.70.92] (port=47892 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PSv4U-0007Hn-CF for qemu-devel@nongnu.org; Wed, 15 Dec 2010 12:23:23 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1PSv4T-0005CJ-9q for qemu-devel@nongnu.org; Wed, 15 Dec 2010 12:23:22 -0500 Received: from mx1.redhat.com ([209.132.183.28]:60954) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1PSv4T-0005C9-0F for qemu-devel@nongnu.org; Wed, 15 Dec 2010 12:23:21 -0500 From: Markus Armbruster Subject: Re: [Qemu-devel] [PATCH v2 1/1] qemu-img.c: Clean up handling of image size in img_create() References: <1291799612-5145-1-git-send-email-Jes.Sorensen@redhat.com> <4D08F32C.1090503@redhat.com> Date: Wed, 15 Dec 2010 18:23:06 +0100 In-Reply-To: <4D08F32C.1090503@redhat.com> (Jes Sorensen's message of "Wed, 15 Dec 2010 17:56:12 +0100") Message-ID: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Jes Sorensen Cc: kwolf@redhat.com, stefanha@linux.vnet.ibm.com, qemu-devel@nongnu.org Jes Sorensen writes: > On 12/15/10 17:47, Markus Armbruster wrote: >> Jes.Sorensen@redhat.com writes: >> >>> From: Jes Sorensen >>> >>> This cleans up the handling of image size in img_create() by parsing >>> the value early, and then only setting it once if a value has been >>> added as the last argument to the command line. >>> >>> Signed-off-by: Jes Sorensen >>> --- >>> qemu-img.c | 14 ++++++++------ >>> 1 files changed, 8 insertions(+), 6 deletions(-) >>> >> >> Patch conflicts with commit c2abccec. > > ARGH :( > >> This switches parsing of the size argument from parse_option_size() (via >> set_option_parameter()) to strtosz(). I'm fine with that, but: >> >> * Before: >> >> $ qemu-img create xxx xxx >> Parameter 'size' expects a size >> You may use k, M, G or T suffixes for kilobytes, megabytes, gigabytes and terabytes. >> qemu-img: Image creation needs a size parameter >> >> * After: >> >> $ qemu-img create xxx xxx >> qemu-img: Image creation needs a size parameter >> >> Intentional? > > This was addressed in the later revision when I introduced strtosz_suffix() Looks like I'm getting lost in my post-vacation mail backlog %-}