Re: [libvirt] [PATCH] Fix capacity reporting for qcow2 images

2008-09-04 Thread Daniel Veillard
On Tue, Sep 02, 2008 at 05:17:56PM -0400, Cole Robinson wrote: > Libvirt was reporting some ridiculously large 'capacity' > values for some qcow2 images I was creating with relatively > small sizes (200 MB). Seems there was a signedness problem > when parsing the file header. The attached fix shows

[libvirt] [PATCH] Fix capacity reporting for qcow2 images

2008-09-02 Thread Cole Robinson
Libvirt was reporting some ridiculously large 'capacity' values for some qcow2 images I was creating with relatively small sizes (200 MB). Seems there was a signedness problem when parsing the file header. The attached fix shows the expected values and doesn't look like it will hurt elsewhere. Tha