]> git.ipfire.org Git - thirdparty/libvirt.git/commitdiff
virDomainSetBlockThreshold: Clarify values of @dev the event is fired for
authorPeter Krempa <pkrempa@redhat.com>
Wed, 15 Jul 2020 11:06:44 +0000 (13:06 +0200)
committerPeter Krempa <pkrempa@redhat.com>
Tue, 21 Jul 2020 07:52:46 +0000 (09:52 +0200)
Top level image may get two events, one with the disk target (vda) and
one with disk target with index (vda[3]) if the top level image has an
index.

Signed-off-by: Peter Krempa <pkrempa@redhat.com>
Reviewed-by: Eric Blake <eblake@redhat.com>
src/libvirt-domain.c

index ba30d18f657dc6a57643699e728ce76d2e98a673..31c1ab4cc1cdb1ca5e9652d04ecdaa715f274413 100644 (file)
@@ -12370,6 +12370,10 @@ int virDomainGetGuestInfo(virDomainPtr domain,
  * described by @dev is written beyond the set threshold level. The threshold
  * level is unset once the event fires. The event might not be delivered at all
  * if libvirtd was not running at the moment when the threshold was reached.
+ * Note that if the threshold level is reached for a top level image, the event
+ * is emitted for @dev corresponding to the disk target, and may also be reported
+ * with @dev corresponding to the disk target with an index corresponding to the
+ * 'index' attribute of 'source' in the live VM XML if the attribute is present.
  *
  * @dev can either be a disk target name (vda, sda) or disk target with index (
  * vda[4]). Without the index the top image in the backing chain will have the