mirror of
https://github.com/libvirt/libvirt.git
synced 2025-02-25 18:55:26 -06:00
qemu: Always assume support for QEMU_CAPS_QCOW2_LUKS
luks-encrypted QCOW2 files were introduced in qemu-2.6 unconditionally. Signed-off-by: Peter Krempa <pkrempa@redhat.com> Reviewed-by: Pavel Hrdina <phrdina@redhat.com> Reviewed-by: Ján Tomko <jtomko@redhat.com>
This commit is contained in:
parent
8eae01ba28
commit
b17e669c84
@ -4988,14 +4988,6 @@ qemuDomainValidateStorageSource(virStorageSource *src,
|
|||||||
src->encryption->engine);
|
src->encryption->engine);
|
||||||
return -1;
|
return -1;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (src->format == VIR_STORAGE_FILE_QCOW2 &&
|
|
||||||
src->encryption->format == VIR_STORAGE_ENCRYPTION_FORMAT_LUKS &&
|
|
||||||
!virQEMUCapsGet(qemuCaps, QEMU_CAPS_QCOW2_LUKS)) {
|
|
||||||
virReportError(VIR_ERR_CONFIG_UNSUPPORTED, "%s",
|
|
||||||
_("LUKS encrypted QCOW2 images are not supported by this QEMU"));
|
|
||||||
return -1;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
if (src->tlsHostname) {
|
if (src->tlsHostname) {
|
||||||
|
Loading…
Reference in New Issue
Block a user