Qemu-img create problem

2011-01-28 Thread Himanshu Chauhan
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
--
To unsubscribe from this list: send the line unsubscribe kvm in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html


Re: Qemu-img create problem

2011-01-28 Thread Stefan Hajnoczi
On Fri, Jan 28, 2011 at 1:13 PM, Himanshu Chauhan
hschau...@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
--
To unsubscribe from this list: send the line unsubscribe kvm in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html