On 08/04/2014 11:46 PM, Li Wei wrote: >> >> How about the following API: >> >> int virConnectGetAllBlockStats(virConnectPtr conn, >> virDomainPtr domain, >> virDomainBlockBulkStatsPtr *stats, >> unsigned int flags); >> @conn: pointer to libvirt connection >> @domain: pointer to the domain to be queried, NULL for all domains >> @stats: array of virDomainBlockBulkStats struct(see below) to be populated >> @flags: filter flags > > Because block stats only valid for active domains, may be this filter flag > can be remove. No, keep the flag. It is still useful to filter on at least transient vs. persistent. -- Eric Blake eblake redhat com +1-919-301-3266 Libvirt virtualization library http://libvirt.org
Attachment:
signature.asc
Description: OpenPGP digital signature
-- libvir-list mailing list libvir-list@xxxxxxxxxx https://www.redhat.com/mailman/listinfo/libvir-list