mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2025-01-22 04:25:18 +00:00
conf/domain_validate: Validate the disk queue_size
Signed-off-by: Han Han <hhan@redhat.com> Reviewed-by: Michal Privoznik <mprivozn@redhat.com>
This commit is contained in:
parent
cef25914eb
commit
ac9c9b621f
@ -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"));
|
||||
|
Loading…
x
Reference in New Issue
Block a user