From patchwork Thu Dec 9 11:54:05 2010 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: [2/2] Make img_create() use strtosz_suffix() Date: Thu, 09 Dec 2010 01:54:05 -0000 From: Jes Sorensen X-Patchwork-Id: 74924 Message-Id: <1291895645-32363-3-git-send-email-Jes.Sorensen@redhat.com> To: kwolf@redhat.com Cc: qemu-devel@nongnu.org, armbru@redhat.com, stefanha@linux.vnet.ibm.com From: Jes Sorensen This reestablished the old default of using bytes as the default for the size argument, and not MB as we do in pretty much every other place. Signed-off-by: Jes Sorensen --- qemu-img.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/qemu-img.c b/qemu-img.c index 9a5e7e1..603bdb3 100644 --- a/qemu-img.c +++ b/qemu-img.c @@ -331,7 +331,7 @@ static int img_create(int argc, char **argv) /* Get image size, if specified */ if (optind < argc) { ssize_t sval; - sval = strtosz(argv[optind++], NULL); + sval = strtosz_suffix(argv[optind++], NULL, STRTOSZ_DEFSUFFIX_B); if (sval < 0) { error("Invalid image size specified! You may use k, M, G or " "T suffixes for ");