libvirt/SOURCES/libvirt-qemu-rename-qemuAgentGetFSInfoInternalDisk.patch
2021-09-10 11:58:15 +00:00

54 lines
1.9 KiB
Diff

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