qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
* [Qemu-devel] [PATCH 0/2] Fix size default for qemu-img
@ 2010-12-09 11:54 Jes.Sorensen
  2010-12-09 11:54 ` [Qemu-devel] [PATCH 1/2] Introduce strtosz_suffix() Jes.Sorensen
  2010-12-09 11:54 ` [Qemu-devel] [PATCH 2/2] Make img_create() use strtosz_suffix() Jes.Sorensen
  0 siblings, 2 replies; 3+ messages in thread
From: Jes.Sorensen @ 2010-12-09 11:54 UTC (permalink / raw)
  To: kwolf; +Cc: qemu-devel, armbru, stefanha

From: Jes Sorensen <Jes.Sorensen@redhat.com>

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

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2010-12-09 11:54 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-12-09 11:54 [Qemu-devel] [PATCH 0/2] Fix size default for qemu-img Jes.Sorensen
2010-12-09 11:54 ` [Qemu-devel] [PATCH 1/2] Introduce strtosz_suffix() Jes.Sorensen
2010-12-09 11:54 ` [Qemu-devel] [PATCH 2/2] Make img_create() use strtosz_suffix() Jes.Sorensen

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).