diff --git a/src/qemu/qemu_driver.c b/src/qemu/qemu_driver.c index 3a2c5f53349a56f9cf151cbc007759cf477d26d2..44cc9501c68dc20b96b2b76027e83200b90c1de8 100644 --- a/src/qemu/qemu_driver.c +++ b/src/qemu/qemu_driver.c @@ -17231,6 +17231,22 @@ qemuDomainBlockJobAbort(virDomainPtr dom, } qemuBlockJobUpdate(vm, job, QEMU_ASYNC_JOB_NONE); } + + if (pivot && + job->state == QEMU_BLOCKJOB_STATE_FAILED) { + if (job->errmsg) { + virReportError(VIR_ERR_OPERATION_FAILED, + _("block job '%s' failed while pivoting"), + job->name); + } else { + virReportError(VIR_ERR_OPERATION_FAILED, + _("block job '%s' failed while pivoting: %s"), + job->name, job->errmsg); + } + + ret = -1; + goto endjob; + } } endjob: