mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2024-12-25 15:15:25 +00:00
qemu: fix blkiotune --live --config
Without this, 'virsh blkiotune --live --config --weight=n' only affected live. * src/qemu/qemu_driver.c (qemuDomainSetBlkioParameters): Allow setting both configurations at once.
This commit is contained in:
parent
51727c1dc0
commit
659ded58ed
@ -5979,7 +5979,10 @@ static int qemuDomainSetBlkioParameters(virDomainPtr dom,
|
|||||||
ret = -1;
|
ret = -1;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
} else if (flags & VIR_DOMAIN_AFFECT_CONFIG) {
|
}
|
||||||
|
if (ret < 0)
|
||||||
|
goto cleanup;
|
||||||
|
if (flags & VIR_DOMAIN_AFFECT_CONFIG) {
|
||||||
/* Clang can't see that if we get here, persistentDef was set. */
|
/* Clang can't see that if we get here, persistentDef was set. */
|
||||||
sa_assert(persistentDef);
|
sa_assert(persistentDef);
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user