qemu: emit error when trying to update blkiotune group_name in qemuDomainChangeDiskLive

The rest of blkiotune parameters are not updatable through UpdateDeviceFlags API.

https://bugzilla.redhat.com/show_bug.cgi?id=1601677

Signed-off-by: Katerina Koukiou <kkoukiou@redhat.com>
Reviewed-by: Ján Tomko <jtomko@redhat.com>
This commit is contained in:
Katerina Koukiou 2018-07-31 09:36:26 +02:00
parent b3d9b08ef7
commit 047cfb05ee

View File

@ -8806,6 +8806,9 @@ qemuDomainDiskChangeSupported(virDomainDiskDefPtr disk,
CHECK_EQ(blkdeviotune.size_iops_sec,
"blkdeviotune size_iops_sec",
true);
CHECK_EQ(blkdeviotune.group_name,
"blkdeviotune group_name",
true);
if (disk->serial && STRNEQ_NULLABLE(disk->serial, orig_disk->serial)) {
virReportError(VIR_ERR_OPERATION_UNSUPPORTED,