From ed656f4c8fdd4e156127c4c2bf40d14f50dcc6a0 Mon Sep 17 00:00:00 2001 From: Peter Krempa Date: Tue, 26 Nov 2024 09:10:10 +0100 Subject: [PATCH] qemuBlockReopenAccess: Don't require backing chain terminator for non-chained images Add an exception for image formats not supporting backing images so that they can be reopened RW/RO without the need for adding a terminating virStorageSource as they simply can't have a backing image. Signed-off-by: Peter Krempa Reviewed-by: Jiri Denemark --- src/qemu/qemu_block.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/qemu/qemu_block.c b/src/qemu/qemu_block.c index a7c8be8d8b..af317a1f1f 100644 --- a/src/qemu/qemu_block.c +++ b/src/qemu/qemu_block.c @@ -3182,7 +3182,7 @@ qemuBlockReopenAccess(virDomainObj *vm, /* If we are lacking the object here, qemu might have opened an image with * a node name unknown to us */ - if (!src->backingStore) { + if (src->format >= VIR_STORAGE_FILE_BACKING && !src->backingStore) { virReportError(VIR_ERR_OPERATION_UNSUPPORTED, "%s", _("can't reopen image with unknown presence of backing store")); return -1; -- 2.47.2