[PATCH 1/8] qemuBlockReopenAccess: Add debug log entry about state of the image

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

 



Log the node name and current and expected state to simplify debugging.

Signed-off-by: Peter Krempa <pkrempa@xxxxxxxxxx>
---
 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




[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