qemu: driver: Allow cancellation of the backup job

Use the helper which cancels all blockjobs to perform the backup job
cancellation in qemuDomainAbortJob.

Signed-off-by: Peter Krempa <pkrempa@redhat.com>
Reviewed-by: Eric Blake <eblake@redhat.com>
Reviewed-by: Ján Tomko <jtomko@redhat.com>
This commit is contained in:
Peter Krempa 2019-11-26 18:26:30 +01:00
parent 5ea6cec9ef
commit e0daa03a35

View File

@ -14044,7 +14044,8 @@ static int qemuDomainAbortJob(virDomainPtr dom)
break;
case QEMU_ASYNC_JOB_BACKUP:
/* TODO: to be implemented later */
qemuBackupJobCancelBlockjobs(vm, priv->backup, true);
ret = 0;
break;
case QEMU_ASYNC_JOB_LAST: