mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2024-09-09 09:14:57 +00:00
qemu: error out on attempt to change blkiotune group name
Check that the attribute is the same in qemuDomainDiskChangeSupported in case somebody tries to change it using the UpdateDevice API. https://bugzilla.redhat.com/show_bug.cgi?id=1601677 Signed-off-by: Ján Tomko <jtomko@redhat.com> Reviewed-by: Laine Stump <laine@laine.org>
This commit is contained in:
parent
8535a298a2
commit
4fbc8ddcd0
@ -9397,6 +9397,8 @@ qemuDomainDiskChangeSupported(virDomainDiskDefPtr disk,
|
||||
CHECK_EQ(blkdeviotune.size_iops_sec,
|
||||
"blkdeviotune size_iops_sec",
|
||||
true);
|
||||
CHECK_STREQ_NULLABLE(blkdeviotune.group_name,
|
||||
"blkdeviotune group name");
|
||||
|
||||
if (disk->serial && STRNEQ_NULLABLE(disk->serial, orig_disk->serial)) {
|
||||
virReportError(VIR_ERR_OPERATION_UNSUPPORTED,
|
||||
|
Loading…
Reference in New Issue
Block a user