Signed-off-by: Pavel Hrdina <phrdina(a)redhat.com>
---
src/qemu/qemu_block.c | 19 +++++++++++++++++++
src/qemu/qemu_block.h | 5 +++++
2 files changed, 24 insertions(+)
diff --git a/src/qemu/qemu_block.c b/src/qemu/qemu_block.c
index 2abddf904f..24c82377b0 100644
--- a/src/qemu/qemu_block.c
+++ b/src/qemu/qemu_block.c
@@ -3509,3 +3509,22 @@ qemuBlockPivot(virDomainObj *vm,
return ret;
}
+
+
+int
+qemuBlockFinalize(virDomainObj *vm,
+ qemuBlockJobData *job,
+ virDomainAsyncJob asyncJob)
+{
+ int ret;
+ qemuDomainObjPrivate *priv = vm->privateData;
+
+ if (qemuDomainObjEnterMonitorAsync(vm, asyncJob) < 0)
+ return -1;
+
+ ret = qemuMonitorJobFinalize(priv->mon, job->name);
+
+ qemuDomainObjExitMonitor(vm);
+
+ return ret;
+}
diff --git a/src/qemu/qemu_block.h b/src/qemu/qemu_block.h
index 7b6aec2a7d..c169432d9c 100644
--- a/src/qemu/qemu_block.h
+++ b/src/qemu/qemu_block.h
@@ -293,3 +293,8 @@ qemuBlockPivot(virDomainObj *vm,
qemuBlockJobData *job,
virDomainAsyncJob asyncJob,
virDomainDiskDef *disk);
+
+int
+qemuBlockFinalize(virDomainObj *vm,
+ qemuBlockJobData *job,
+ virDomainAsyncJob asyncJob);
--
2.38.1