mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2025-03-20 06:50:22 +03:00
qemu: fix qemuDomainSaveImageDefineXML
The commit in question made an incorrect change that resulted in getting O_RDONLY FD instead of O_RDWR preventing any writes to happen with the following error: virQEMUSaveDataWrite:176 : failed to write header to domain save file '/path/to/save.img': Bad file descriptor Pass 'bypass_cache' as proper bool as the original code did. Fixes: 517248e2394476a3105ff5866b0b718fc6583073 Signed-off-by: Pavel Hrdina <phrdina@redhat.com> Reviewed-by: Peter Krempa <pkrempa@redhat.com>
This commit is contained in:
parent
f1bd98f887
commit
5def28df55
@ -5949,7 +5949,7 @@ qemuDomainSaveImageDefineXML(virConnectPtr conn, const char *path,
|
||||
if (qemuSaveImageGetMetadata(driver, NULL, path, &def, &data) < 0)
|
||||
goto cleanup;
|
||||
|
||||
fd = qemuSaveImageOpen(driver, path, 0, NULL, false);
|
||||
fd = qemuSaveImageOpen(driver, path, false, NULL, true);
|
||||
if (fd < 0)
|
||||
goto cleanup;
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user