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

Cole Robinson crobinso at redhat.com
Tue Sep 2 21:17:56 UTC 2008

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.

-------------- next part --------------
A non-text attachment was scrubbed...
Name: libvirt-fix-qcow-capacity-reporting.patch
Type: text/x-patch
Size: 517 bytes
Desc: not available
URL: <http://listman.redhat.com/archives/libvir-list/attachments/20080902/f593321c/attachment-0001.bin>

More information about the libvir-list mailing list