From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from [140.186.70.92] (port=38590 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PQf4u-000867-RH for qemu-devel@nongnu.org; Thu, 09 Dec 2010 06:54:30 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1PQf4r-0001YL-Fs for qemu-devel@nongnu.org; Thu, 09 Dec 2010 06:54:28 -0500 Received: from mx1.redhat.com ([209.132.183.28]:5651) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1PQf4r-0001Y4-91 for qemu-devel@nongnu.org; Thu, 09 Dec 2010 06:54:25 -0500 From: Jes.Sorensen@redhat.com Date: Thu, 9 Dec 2010 12:54:03 +0100 Message-Id: <1291895645-32363-1-git-send-email-Jes.Sorensen@redhat.com> Subject: [Qemu-devel] [PATCH 0/2] Fix size default for qemu-img 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 Kevin pointed out that my chance to img_create()'s handling of the image size, changed the previous default of byte for size if no suffix was specified, since strtosz() defaults to MB. This patch set introduces strtosz_suffix() and then changes img_create() to use that instead, thereby restoring the old default behavior. Jes Sorensen (2): Introduce strtosz_suffix() Make img_create() use strtosz_suffix() cutils.c | 17 ++++++++++++++--- qemu-common.h | 7 +++++++ qemu-img.c | 2 +- 3 files changed, 22 insertions(+), 4 deletions(-) -- 1.7.3.2