From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from [140.186.70.92] (port=40758 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PQfNq-0004de-NW for qemu-devel@nongnu.org; Thu, 09 Dec 2010 07:14:20 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1PQfNT-0006K1-3i for qemu-devel@nongnu.org; Thu, 09 Dec 2010 07:14:02 -0500 Received: from mx1.redhat.com ([209.132.183.28]:41071) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1PQfNS-0006JW-PS for qemu-devel@nongnu.org; Thu, 09 Dec 2010 07:13:39 -0500 From: Jes.Sorensen@redhat.com Date: Thu, 9 Dec 2010 13:13:32 +0100 Message-Id: <1291896814-3554-1-git-send-email-Jes.Sorensen@redhat.com> Subject: [Qemu-devel] [PATCH v4 0/2] Clean up img_create() and introduce strtosz_suffix() List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: kwolf@redhat.com Cc: qemu-devel@nongnu.org, armbru@redhat.com, stefanha@linux.vnet.ibm.com From: Jes Sorensen This patch set introduces strtosz_suffix() which is needed to be able to use strtosz parsing with a non MB default suffix. This is used to clean up qemu-img.c:img_create(). Kevin asked me to rebase this instead of applying the other patches on top, so please discard the previous versions. Sorry for the patch noise. Jes Sorensen (2): Introduce strtosz_suffix() qemu-img.c: Clean up handling of image size in img_create() cutils.c | 17 ++++++++++++++--- qemu-common.h | 7 +++++++ qemu-img.c | 23 +++++++++++++++++------ 3 files changed, 38 insertions(+), 9 deletions(-) -- 1.7.3.2