mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2024-12-24 22:55:23 +00:00
qemu: fix persistent setting of blkiodevice weights
virsh blkiotune dom --device-weights /dev/sda,400 --config wasn't working correctly. * src/qemu/qemu_driver.c (qemuDomainSetBlkioParameters): Use correct definition.
This commit is contained in:
parent
b0bfbd82d1
commit
c8c239a439
@ -6148,8 +6148,8 @@ qemuDomainSetBlkioParameters(virDomainPtr dom,
|
||||
ret = -1;
|
||||
continue;
|
||||
}
|
||||
if (qemuDomainMergeDeviceWeights(&vm->def->blkio.devices,
|
||||
&vm->def->blkio.ndevices,
|
||||
if (qemuDomainMergeDeviceWeights(&persistentDef->blkio.devices,
|
||||
&persistentDef->blkio.ndevices,
|
||||
devices, ndevices) < 0)
|
||||
ret = -1;
|
||||
virBlkioDeviceWeightArrayClear(devices, ndevices);
|
||||
|
Loading…
Reference in New Issue
Block a user