[libvirt] [PATCH] qemu: Fix reporting of physical capacity for block devices

Peter Krempa pkrempa at redhat.com
Fri Aug 7 11:37:26 UTC 2015


On Fri, Aug 07, 2015 at 12:06:06 +0200, Martin Kletzander wrote:
> On Fri, Aug 07, 2015 at 11:06:13AM +0200, Peter Krempa wrote:
> >Qemu reports physical size 0 for block devices. As 15fa84acbb55ebfee6a4
> >changed the behavior of qemuDomainGetBlockInfo to just query the monitor
> >this created a regression since we didn't report the size correctly any
> >more.
> >
> >This patch adds code to refresh the physical size of a block device by
> >opening it and seeking to the end and uses it both in
> >qemuDomainGetBlockInfo and also in qemuDomainGetStatsOneBlock that was
> >broken since it was introduced in this respect.
> >
> >Resolves: https://bugzilla.redhat.com/show_bug.cgi?id=1250982
> >---
> 
> ACK

Pushed; Thanks.

Peter


-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 819 bytes
Desc: Digital signature
URL: <http://listman.redhat.com/archives/libvir-list/attachments/20150807/43d886ca/attachment-0001.sig>


More information about the libvir-list mailing list