mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2025-01-10 23:07:44 +00:00
blkdeviotune: fix bug with saving values into live XML
When you updated some blkdeviotune values for running domain the values were stored only internally, but not saved into the live XML so they won't survive restarting the libvirtd. Signed-off-by: Pavel Hrdina <phrdina@redhat.com>
This commit is contained in:
parent
dd0ce57386
commit
783fe9ca8c
@ -16406,6 +16406,13 @@ qemuDomainSetBlockIoTune(virDomainPtr dom,
|
||||
if (ret < 0)
|
||||
goto endjob;
|
||||
vm->def->disks[idx]->blkdeviotune = info;
|
||||
|
||||
ret = virDomainSaveStatus(driver->xmlopt, cfg->stateDir, vm);
|
||||
if (ret < 0) {
|
||||
virReportError(VIR_ERR_OPERATION_FAILED, "%s",
|
||||
_("Saving live XML config failed"));
|
||||
goto endjob;
|
||||
}
|
||||
}
|
||||
|
||||
if (flags & VIR_DOMAIN_AFFECT_CONFIG) {
|
||||
|
Loading…
Reference in New Issue
Block a user