]> git.proxmox.com Git - qemu.git/commit
qemu-img.c: Clean up handling of image size in img_create()
authorJes Sorensen <Jes.Sorensen@redhat.com>
Thu, 9 Dec 2010 13:17:25 +0000 (14:17 +0100)
committerKevin Wolf <kwolf@redhat.com>
Fri, 17 Dec 2010 15:10:59 +0000 (16:10 +0100)
commit1da7cfbd0117eeb0aa29b187bb01426d9290e8ab
treef8c2d1113f09830bf22ba83ba3bf0fd53eb0f07e
parentd8427002dc1be0a9337cde3ef505ee6e57718675
qemu-img.c: Clean up handling of image size in img_create()

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 <Jes.Sorensen@redhat.com>
Reviewed-by: Stefan Hajnoczi <stefanha@linux.vnet.ibm.com>
Signed-off-by: Kevin Wolf <kwolf@redhat.com>
qemu-img.c