]> git.ipfire.org Git - thirdparty/libvirt.git/commitdiff
qemu: rename qemuAgentGetFSInfoInternalDisk()
authorJonathon Jongsma <jjongsma@redhat.com>
Fri, 10 Jan 2020 23:32:10 +0000 (17:32 -0600)
committerMichal Privoznik <mprivozn@redhat.com>
Thu, 16 Jan 2020 15:35:46 +0000 (16:35 +0100)
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>
src/qemu/qemu_agent.c

index 5fa8d24a91868b21c96627c3236eb2c53e5bd7f4..8b54786ed8badc79ab19eb72d63b0e8fc1ecd05c 100644 (file)
@@ -1929,9 +1929,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;
@@ -2143,7 +2143,7 @@ qemuAgentGetFSInfoInternal(qemuAgentPtr mon,
             goto cleanup;
         }
 
-        if (qemuAgentGetFSInfoInternalDisk(disk, info_ret[i], vmdef) < 0)
+        if (qemuAgentGetFSInfoFillDisks(disk, info_ret[i], vmdef) < 0)
             goto cleanup;
     }