Signed-off-by: Pavel Hrdina <phrdina@xxxxxxxxxx> --- src/qemu/qemu_block.c | 16 ++++++++++++++++ src/qemu/qemu_block.h | 4 ++++ 2 files changed, 20 insertions(+) diff --git a/src/qemu/qemu_block.c b/src/qemu/qemu_block.c index ce26afe611..92b0fc9812 100644 --- a/src/qemu/qemu_block.c +++ b/src/qemu/qemu_block.c @@ -3541,3 +3541,19 @@ qemuBlockPivot(virDomainObj *vm, return ret; } + +int +qemuBlockFinalize(virDomainObj *vm, + qemuBlockJobData *job) +{ + int ret; + qemuDomainObjPrivate *priv = vm->privateData; + + qemuDomainObjEnterMonitor(vm); + + 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 85dd9c086c..82389d3a58 100644 --- a/src/qemu/qemu_block.h +++ b/src/qemu/qemu_block.h @@ -302,3 +302,7 @@ int qemuBlockPivot(virDomainObj *vm, qemuBlockJobData *job, virDomainDiskDef *disk); + +int +qemuBlockFinalize(virDomainObj *vm, + qemuBlockJobData *job); -- 2.37.2