From b510f8ca8a603e3e4b4099250a9393cb2c01c525 Mon Sep 17 00:00:00 2001 From: Peter Krempa Date: Tue, 26 Nov 2024 13:08:34 +0100 Subject: [PATCH] qemuBlockReopenAccess: Add debug log entry about state of the image Log the node name and current and expected state to simplify debugging. Signed-off-by: Peter Krempa Reviewed-by: Jiri Denemark --- src/qemu/qemu_block.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/qemu/qemu_block.c b/src/qemu/qemu_block.c index dab9ce4dc2..088c128424 100644 --- a/src/qemu/qemu_block.c +++ b/src/qemu/qemu_block.c @@ -3174,6 +3174,10 @@ qemuBlockReopenAccess(virDomainObj *vm, int rc; int ret = -1; + VIR_DEBUG("nodename:'%s' current-ro:'%d requested-ro='%d'", + qemuBlockStorageSourceGetEffectiveNodename(src), + src->readonly, readonly); + if (src->readonly == readonly) return 0;