render / rpms / libvirt

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