[PATCH 4/4] qemuDomainGetBlockInfo: Add debug statement when updating disk physical size

Peter Krempa via Devel posted 4 patches 1 week, 2 days ago
[PATCH 4/4] qemuDomainGetBlockInfo: Add debug statement when updating disk physical size
Posted by Peter Krempa via Devel 1 week, 2 days ago
From: Peter Krempa <pkrempa@redhat.com>

Update of the physical size fetches it from stat()-ing the file on disk,
which is not visible in the logs so the information can't be pieced back
together as it's the case with the data fetched from the qemu monitor.

Signed-off-by: Peter Krempa <pkrempa@redhat.com>
---
 src/qemu/qemu_driver.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/src/qemu/qemu_driver.c b/src/qemu/qemu_driver.c
index d92269d3b6..f4805a93ca 100644
--- a/src/qemu/qemu_driver.c
+++ b/src/qemu/qemu_driver.c
@@ -10664,6 +10664,7 @@ qemuDomainGetBlockInfo(virDomainPtr dom,
             info->allocation = entry->physical;

         if (qemuDomainStorageUpdatePhysical(cfg, vm, disk->src) == 0) {
+            VIR_DEBUG("updating physical disk size to '%llu'", disk->src->physical);
             info->physical = disk->src->physical;
         } else {
             info->physical = entry->physical;
-- 
2.53.0