于 2011年10月24日 17:13, Daniel P. Berrange 写道:
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
How quick response. Ok, so we still wait for qemu's events. Thanks
Osier
--
libvir-list mailing list
libvir-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/libvir-list