render / rpms / libvirt

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