1
0
mirror of https://gitlab.com/libvirt/libvirt.git synced 2025-01-11 09:17:52 +03:00

qemuDomainBlockPeek: Fix format checking logic

Recent refactor which changed the format check to use
qemuBlockStorageSourceIsRaw accidentaly inverted the condition.

Caught by the CI test suite.

Fixes: b600b69f82
Signed-off-by: Peter Krempa <pkrempa@redhat.com>
This commit is contained in:
Peter Krempa 2023-12-16 09:20:41 +01:00
parent 0d03ca17b1
commit 19ce02c773

View File

@ -10173,7 +10173,7 @@ qemuDomainBlockPeek(virDomainPtr dom,
goto cleanup;
}
if (qemuBlockStorageSourceIsRaw(disk->src)) {
if (!qemuBlockStorageSourceIsRaw(disk->src)) {
virReportError(VIR_ERR_OPERATION_UNSUPPORTED,
_("peeking is only supported for disk with 'raw' format not '%1$s'"),
virStorageFileFormatTypeToString(disk->src->format));