]> git.ipfire.org Git - thirdparty/libvirt.git/commit
qemu: get defaults from iotune group we move disk into
authorNikolay Shirokovskiy <nshirokovskiy@virtuozzo.com>
Wed, 8 Jan 2020 06:49:30 +0000 (09:49 +0300)
committerMichal Privoznik <mprivozn@redhat.com>
Wed, 29 Jan 2020 10:46:58 +0000 (11:46 +0100)
commit57ac9f5eef6f7b6f4c92ab7fbdb4beaf6c6dbc20
tree71debb04d4a0bd50159edea2383d80b80bd7166f
parentbb36ae81a0e472558cf62dfac893bfcdbcae0f12
qemu: get defaults from iotune group we move disk into

For example if disk is not in the group and we want to move it
there then it makes sense to specify only the group name in API call.
Currently the destination group iotune settings will be overwritten
with the disk settings which I would say is not what one would expect.
Thus let's get defaults from the group we are moving to.

And if we are moving the brand new group then is makes sense to
copy the current disk iotune settings to the group.

Signed-off-by: Nikolay Shirokovskiy <nshirokovskiy@virtuozzo.com>
Signed-off-by: Michal Privoznik <mprivozn@redhat.com>
Reviewed-by: Daniel P. Berrangé <berrange@redhat.com>
Reviewed-by: Michal Privoznik <mprivozn@redhat.com>
src/qemu/qemu_driver.c