[PATCH 3/7] qemu: Introduce helper qemuDomainStorageUpdatePhysical

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

 



Currently just a shim to call virStorageSourceUpdateBlockPhysicalSize

Signed-off-by: John Ferlan <jferlan@xxxxxxxxxx>
---
 src/qemu/qemu_driver.c | 12 ++++++++++--
 1 file changed, 10 insertions(+), 2 deletions(-)

diff --git a/src/qemu/qemu_driver.c b/src/qemu/qemu_driver.c
index 6a312d2..a744fda 100644
--- a/src/qemu/qemu_driver.c
+++ b/src/qemu/qemu_driver.c
@@ -11600,6 +11600,14 @@ qemuDomainStorageCloseStat(virStorageSourcePtr src,
 }
 
 
+static int
+qemuDomainStorageUpdatePhysical(virStorageSourcePtr src,
+                                bool report)
+{
+    return virStorageSourceUpdateBlockPhysicalSize(src, report);
+}
+
+
 /**
  * @driver: qemu driver data
  * @cfg: driver configuration data
@@ -11823,7 +11831,7 @@ qemuDomainGetBlockInfo(virDomainPtr dom,
     if (entry->physical) {
         info->physical = entry->physical;
     } else {
-        if (virStorageSourceUpdateBlockPhysicalSize(disk->src, true) < 0)
+        if (qemuDomainStorageUpdatePhysical(disk->src, true) < 0)
             goto endjob;
 
         info->physical = disk->src->physical;
@@ -19378,7 +19386,7 @@ qemuDomainGetStatsOneBlock(virQEMUDriverPtr driver,
         QEMU_ADD_BLOCK_PARAM_ULL(record, maxparams, block_idx,
                                  "physical", entry->physical);
     } else {
-        if (virStorageSourceUpdateBlockPhysicalSize(src, false) == 0) {
+        if (qemuDomainStorageUpdatePhysical(src, false) == 0) {
             QEMU_ADD_BLOCK_PARAM_ULL(record, maxparams, block_idx,
                                      "physical", src->physical);
         }
-- 
2.7.4

--
libvir-list mailing list
libvir-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/libvir-list



[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