qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
* [Qemu-devel] Qemu-img create problem
@ 2011-01-28 13:13 Himanshu Chauhan
  2011-01-28 16:09 ` [Qemu-devel] " Stefan Hajnoczi
  0 siblings, 1 reply; 2+ messages in thread
From: Himanshu Chauhan @ 2011-01-28 13:13 UTC (permalink / raw)
  To: qemu-devel, kvm

Hi,

I just cloned qemu-kvm, built and installed it. But the qemu-img fails
to create any disk image above 1G. The problem as I see is use of
ssize_t for image size. When size is >2G, the check "if (sval < 0)"
succeeds and I get the error:

qemu-img: Invalid image size specified! You may use k, M, G or T suffixes for
qemu-img: kilobytes, megabytes, gigabytes and terabytes.

Regards
Himanshu

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

* [Qemu-devel] Re: Qemu-img create problem
  2011-01-28 13:13 [Qemu-devel] Qemu-img create problem Himanshu Chauhan
@ 2011-01-28 16:09 ` Stefan Hajnoczi
  0 siblings, 0 replies; 2+ messages in thread
From: Stefan Hajnoczi @ 2011-01-28 16:09 UTC (permalink / raw)
  To: Himanshu Chauhan; +Cc: qemu-devel, kvm

On Fri, Jan 28, 2011 at 1:13 PM, Himanshu Chauhan
<hschauhan@nulltrace.org> wrote:
> I just cloned qemu-kvm, built and installed it. But the qemu-img fails
> to create any disk image above 1G. The problem as I see is use of
> ssize_t for image size. When size is >2G, the check "if (sval < 0)"
> succeeds and I get the error:

This is fixed in qemu.git 70b4f4bb05ff5e6812c6593eeefbd19bd61b517d
"Make strtosz() return int64_t instead of ssize_t".

Stefan

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

end of thread, other threads:[~2011-01-28 16:09 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-01-28 13:13 [Qemu-devel] Qemu-img create problem Himanshu Chauhan
2011-01-28 16:09 ` [Qemu-devel] " Stefan Hajnoczi

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).