[PATCH 2/2] conf/domain_validate: Validate the disk queue_size

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Signed-off-by: Han Han <hhan@xxxxxxxxxx>
---
 src/conf/domain_validate.c | 6 ++++++
 1 file changed, 6 insertions(+)

diff --git a/src/conf/domain_validate.c b/src/conf/domain_validate.c
index e835ad33ad..ad383b604e 100644
--- a/src/conf/domain_validate.c
+++ b/src/conf/domain_validate.c
@@ -788,6 +788,12 @@ virDomainDiskDefValidate(const virDomainDef *def,
             return -1;
         }
 
+        if (disk->queue_size) {
+            virReportError(VIR_ERR_CONFIG_UNSUPPORTED, "%s",
+                           _("queue_size attribute in disk driver is only supported for virtio bus"));
+            return -1;
+        }
+
         if (disk->event_idx != VIR_TRISTATE_SWITCH_ABSENT) {
             virReportError(VIR_ERR_CONFIG_UNSUPPORTED, "%s",
                            _("disk event_idx mode supported only for virtio bus"));
-- 
2.41.0




[Index of Archives]     [Virt Tools]     [Libvirt Users]     [Lib OS Info]     [Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [KDE Users]     [Fedora Tools]

  Powered by Linux