On Mon, Oct 24, 2011 at 05:10:08PM +0800, Osier Yang wrote: > Command "query-block" is only used internally for medium's > checking before migration currently. Should we expose it > as a public API, such as virDomainQueryBlock (or a qemu > specific API, virDomainQemuQueryBlock)? > > It has enough useful infomation which user may care out, > such as "io-status", "locked", "removable", "inserted". And > perhaps more info in future. Most of this is information already available via the XML description. The problem is that we're not being notified by QEMU when some of these things change, so we're unable to update the XML. Applications should not have to poll on a "query block" like API to get this kind of info - we should be notifying them instead. Daniel -- |: http://berrange.com -o- http://www.flickr.com/photos/dberrange/ :| |: http://libvirt.org -o- http://virt-manager.org :| |: http://autobuild.org -o- http://search.cpan.org/~danberr/ :| |: http://entangle-photo.org -o- http://live.gnome.org/gtk-vnc :| -- libvir-list mailing list libvir-list@xxxxxxxxxx https://www.redhat.com/mailman/listinfo/libvir-list