Log the node name and current and expected state to simplify debugging.
Signed-off-by: Peter Krempa <pkrempa@redhat.com>
---
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;
--
2.47.0