qemu: blockjob: Rename qemuBlockJobEventProcess to qemuBlockJobEventProcessLegacy

This will handle blockjob finalizing for the old approach so rename it
accordingly.

Signed-off-by: Peter Krempa <pkrempa@redhat.com>
Reviewed-by: Ján Tomko <jtomko@redhat.com>
This commit is contained in:
Peter Krempa 2018-10-17 14:43:01 +02:00
parent 2a1248badd
commit 246303dc5b

View File

@ -82,7 +82,7 @@ qemuBlockJobEmitEvents(virQEMUDriverPtr driver,
/** /**
* qemuBlockJobEventProcess: * qemuBlockJobEventProcessLegacy:
* @driver: qemu driver * @driver: qemu driver
* @vm: domain * @vm: domain
* @disk: domain disk * @disk: domain disk
@ -94,12 +94,12 @@ qemuBlockJobEmitEvents(virQEMUDriverPtr driver,
* restart, also update the domain's status XML. * restart, also update the domain's status XML.
*/ */
static void static void
qemuBlockJobEventProcess(virQEMUDriverPtr driver, qemuBlockJobEventProcessLegacy(virQEMUDriverPtr driver,
virDomainObjPtr vm, virDomainObjPtr vm,
virDomainDiskDefPtr disk, virDomainDiskDefPtr disk,
int asyncJob, int asyncJob,
int type, int type,
int status) int status)
{ {
virQEMUDriverConfigPtr cfg = virQEMUDriverGetConfig(driver); virQEMUDriverConfigPtr cfg = virQEMUDriverGetConfig(driver);
virDomainDiskDefPtr persistDisk = NULL; virDomainDiskDefPtr persistDisk = NULL;
@ -233,8 +233,8 @@ qemuBlockJobUpdateDisk(virDomainObjPtr vm,
*error = NULL; *error = NULL;
if (status != -1) { if (status != -1) {
qemuBlockJobEventProcess(priv->driver, vm, disk, asyncJob, qemuBlockJobEventProcessLegacy(priv->driver, vm, disk, asyncJob,
job->type, status); job->type, status);
job->status = -1; job->status = -1;
if (error) if (error)
VIR_STEAL_PTR(*error, job->errmsg); VIR_STEAL_PTR(*error, job->errmsg);