render / rpms / libvirt

Forked from rpms/libvirt 9 months ago
Clone
a41c76
From f1ffcda533c6c95e70044aeee86d017ae6132876 Mon Sep 17 00:00:00 2001
a41c76
Message-Id: <f1ffcda533c6c95e70044aeee86d017ae6132876@dist-git>
a41c76
From: Jonathon Jongsma <jjongsma@redhat.com>
a41c76
Date: Thu, 20 Feb 2020 10:52:23 -0600
a41c76
Subject: [PATCH] qemu: rename qemuAgentGetFSInfoInternalDisk()
a41c76
MIME-Version: 1.0
a41c76
Content-Type: text/plain; charset=UTF-8
a41c76
Content-Transfer-Encoding: 8bit
a41c76
a41c76
The function name doesn't give a good idea of what the function does.
a41c76
Rename to qemuAgentGetFSInfoFillDisks() to make it more obvious than it
a41c76
is filling in the disk information in the fsinfo struct.
a41c76
a41c76
Signed-off-by: Jonathon Jongsma <jjongsma@redhat.com>
a41c76
Reviewed-by: Michal Privoznik <mprivozn@redhat.com>
a41c76
(cherry picked from commit e888c0f66752bb6516d63a612c20f565cbf9c0ca)
a41c76
Signed-off-by: Jonathon Jongsma <jjongsma@redhat.com>
a41c76
https://bugzilla.redhat.com/show_bug.cgi?id=1759566
a41c76
Message-Id: <20200220165227.11491-2-jjongsma@redhat.com>
a41c76
Reviewed-by: Ján Tomko <jtomko@redhat.com>
a41c76
---
a41c76
 src/qemu/qemu_agent.c | 8 ++++----
a41c76
 1 file changed, 4 insertions(+), 4 deletions(-)
a41c76
a41c76
diff --git a/src/qemu/qemu_agent.c b/src/qemu/qemu_agent.c
a41c76
index f759785050..0f099f3b2a 100644
a41c76
--- a/src/qemu/qemu_agent.c
a41c76
+++ b/src/qemu/qemu_agent.c
a41c76
@@ -1925,9 +1925,9 @@ qemuAgentFSInfoToPublic(qemuAgentFSInfoPtr agent)
a41c76
 }
a41c76
 
a41c76
 static int
a41c76
-qemuAgentGetFSInfoInternalDisk(virJSONValuePtr jsondisks,
a41c76
-                               qemuAgentFSInfoPtr fsinfo,
a41c76
-                               virDomainDefPtr vmdef)
a41c76
+qemuAgentGetFSInfoFillDisks(virJSONValuePtr jsondisks,
a41c76
+                            qemuAgentFSInfoPtr fsinfo,
a41c76
+                            virDomainDefPtr vmdef)
a41c76
 {
a41c76
     size_t ndisks;
a41c76
     size_t i;
a41c76
@@ -2139,7 +2139,7 @@ qemuAgentGetFSInfoInternal(qemuAgentPtr mon,
a41c76
             goto cleanup;
a41c76
         }
a41c76
 
a41c76
-        if (qemuAgentGetFSInfoInternalDisk(disk, info_ret[i], vmdef) < 0)
a41c76
+        if (qemuAgentGetFSInfoFillDisks(disk, info_ret[i], vmdef) < 0)
a41c76
             goto cleanup;
a41c76
     }
a41c76
 
a41c76
-- 
a41c76
2.25.0
a41c76