mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2024-08-28 03:21:19 +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;
|
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) {
|
if (disk->event_idx != VIR_TRISTATE_SWITCH_ABSENT) {
|
||||||
virReportError(VIR_ERR_CONFIG_UNSUPPORTED, "%s",
|
virReportError(VIR_ERR_CONFIG_UNSUPPORTED, "%s",
|
||||||
_("disk event_idx mode supported only for virtio bus"));
|
_("disk event_idx mode supported only for virtio bus"));
|
||||||
|
Loading…
Reference in New Issue
Block a user