[libvirt] [PATCH v2 1/9] include: Add new "group_name" definition for iotune throttling

John Ferlan jferlan at redhat.com
Mon Nov 7 21:56:36 UTC 2016


Add the new field to support sharing I/O throttling quota between
multiple drives.

Signed-off-by: John Ferlan <jferlan at redhat.com>
---
 include/libvirt/libvirt-domain.h | 7 +++++++
 1 file changed, 7 insertions(+)

diff --git a/include/libvirt/libvirt-domain.h b/include/libvirt/libvirt-domain.h
index 5f50660..8c9876c 100644
--- a/include/libvirt/libvirt-domain.h
+++ b/include/libvirt/libvirt-domain.h
@@ -2377,6 +2377,13 @@ int virDomainBlockCommit(virDomainPtr dom, const char *disk, const char *base,
  */
 # define VIR_DOMAIN_BLOCK_IOTUNE_SIZE_IOPS_SEC "size_iops_sec"
 
+/**
+ * VIR_DOMAIN_BLOCK_IOTUNE_GROUP_NAME:
+ * Macro for the BlockIoTune tunable weight: it represents a group name to
+ * allow sharing of I/O throttling quota between multiple drives, as a string.
+ */
+# define VIR_DOMAIN_BLOCK_IOTUNE_GROUP_NAME "group_name"
+
 int
 virDomainSetBlockIoTune(virDomainPtr dom,
                         const char *disk,
-- 
2.7.4




More information about the libvir-list mailing list