[libvirt] [PATCH 2/5] Internal driver API infrastructure for virDomainGetBlockInfo

Eric Blake eblake at redhat.com
Tue Apr 27 22:19:36 UTC 2010


On 04/27/2010 01:34 PM, Daniel P. Berrange wrote:
> This defines the internal driver API and stubs out each driver
> 
> * src/driver.h: Define virDrvDomainGetBlockInfo signature
> * src/libvirt.c, src/libvirt_public.syms: Glue public API to drivers
> * src/esx/esx_driver.c, src/lxc/lxc_driver.c, src/opennebula/one_driver.c,
>   src/openvz/openvz_driver.c, src/phyp/phyp_driver.c,
>   src/test/test_driver.c, src/uml/uml_driver.c, src/vbox/vbox_tmpl.c,
>   src/xen/xen_driver.c, src/xenapi/xenapi_driver.c: Stub out driver
...
> +/**
> + * virDomainGetBlockInfo:
> + * @domain: a domain object
> + * @path: path to the block device or file
> + * @info: pointer to a virDomainBlockInfo structure allocated by the user

Document that flags is 0 for now?

> + *
> + * Extract information about a domain's block device.
> + *
> + * Returns 0 in case of success and -1 in case of failure.
> + */
> +int
> +virDomainGetBlockInfo(virDomainPtr domain, const char *path, virDomainBlockInfoPtr info, unsigned int flags)
> +{
> +    virConnectPtr conn;
> +    DEBUG("domain=%p, info=%p", domain, info);

List flags in the DEBUG.

ACK with those nits addressed.

-- 
Eric Blake   eblake at redhat.com    +1-801-349-2682
Libvirt virtualization library http://libvirt.org

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 619 bytes
Desc: OpenPGP digital signature
URL: <http://listman.redhat.com/archives/libvir-list/attachments/20100427/599e56da/attachment-0001.sig>


More information about the libvir-list mailing list