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 <pkrempa@redhat.com>
Reviewed-by: Jiri Denemark <jdenemar@redhat.com>
This commit is contained in:
Peter Krempa 2024-11-26 13:08:34 +01:00
parent c4d6bd3bf5
commit b510f8ca8a

View File

@ -3174,6 +3174,10 @@ qemuBlockReopenAccess(virDomainObj *vm,
int rc; int rc;
int ret = -1; int ret = -1;
VIR_DEBUG("nodename:'%s' current-ro:'%d requested-ro='%d'",
qemuBlockStorageSourceGetEffectiveNodename(src),
src->readonly, readonly);
if (src->readonly == readonly) if (src->readonly == readonly)
return 0; return 0;