Re: [PATCH 01/10] qemu: block: Introduce helpers for properly testing for 'raw' and 'luks' images

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On a Thursday in 2023, Peter Krempa wrote:
Unfortunately a LUKS image to be decrypted by qemu has
VIR_STORAGE_FILE_RAW as format, but has encryption properties populated.

Many places in the code don't check it properly and also don't check
properly whether the image is indeed LUKS to be decrypted by qemu.

Introduce helpes which will simplify this task.

*helpers


Signed-off-by: Peter Krempa <pkrempa@xxxxxxxxxx>
---
src/qemu/qemu_block.c | 43 +++++++++++++++++++++++++++++++++++++++++++
src/qemu/qemu_block.h |  5 +++++
2 files changed, 48 insertions(+)

diff --git a/src/qemu/qemu_block.c b/src/qemu/qemu_block.c
index 7e9daf0bdc..845b273b27 100644
--- a/src/qemu/qemu_block.c
+++ b/src/qemu/qemu_block.c
@@ -3237,6 +3237,49 @@ qemuBlockReopenReadOnly(virDomainObj *vm,
    return qemuBlockReopenAccess(vm, src, true, asyncJob);
}

+
+/**
+ * qemuBlockStorageSourceIsQEMULuks:

This would be the only function with "Luks" capitalized like that in the
whole repo.

qemuBlockStorageSourceIsQEMULUKS looks unreadable.
Would qemuBlockStorageSourceIsLUKS be enough? We're already talking
about "qemu Block Storage"

Either way:
Reviewed-by: Ján Tomko <jtomko@xxxxxxxxxx>

and with the typo fixed:
Spellchecked-by: Ján Tomko <jtomko@xxxxxxxxxx>

Jano

Attachment: signature.asc
Description: PGP signature

_______________________________________________
Devel mailing list -- devel@xxxxxxxxxxxxxxxxx
To unsubscribe send an email to devel-leave@xxxxxxxxxxxxxxxxx

[Index of Archives]     [Virt Tools]     [Libvirt Users]     [Lib OS Info]     [Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [KDE Users]     [Fedora Tools]

  Powered by Linux