]> git.ipfire.org Git - thirdparty/libvirt.git/commit
Add virDomainGetBlockInfo API to query disk sizing
authorDaniel P. Berrange <berrange@redhat.com>
Tue, 27 Apr 2010 19:24:30 +0000 (20:24 +0100)
committerDaniel P. Berrange <berrange@redhat.com>
Thu, 29 Apr 2010 16:20:24 +0000 (17:20 +0100)
commit24aad9f7be2da1371dcb9ac02fa9fe8b77dd0bc3
treeaed2dda9056de974c39ea4833b6ef3be6e8ede49
parent270895063d1cf86ab42fa220a8d090c24d58dbc0
Add virDomainGetBlockInfo API to query disk sizing

Some applications need to be able to query a guest's disk info,
even for paths not managed by the storage pool APIs. This adds
a very simple API to get this information, modelled on the
virStorageVolGetInfo API, but with an extra field 'physical'.
Normally 'physical' and 'allocation' will be identical, but
in the case of a qcow2-like file stored inside a block device
'physical' will give the block device size, while 'allocation'
will give the qcow2 image size

* include/libvirt/libvirt.h.in: Define virDomainGetBlockInfo
include/libvirt/libvirt.h.in