mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2024-12-23 22:25:25 +00:00
qemuBlockJobDiskNewCommit: Propagate 'disabledBitmapsBase'
Add an argument to qemuBlockJobDiskNewCommit to propagate the list of disabled bitmaps into the job data structure. Signed-off-by: Peter Krempa <pkrempa@redhat.com> Reviewed-by: Eric Blake <eblake@redhat.com>
This commit is contained in:
parent
4e9bb10cf3
commit
a2bf4a13ac
@ -285,6 +285,7 @@ qemuBlockJobDiskNewCommit(virDomainObjPtr vm,
|
||||
virStorageSourcePtr topparent,
|
||||
virStorageSourcePtr top,
|
||||
virStorageSourcePtr base,
|
||||
char ***disabledBitmapsBase,
|
||||
bool delete_imgs,
|
||||
unsigned int jobflags)
|
||||
{
|
||||
@ -310,6 +311,7 @@ qemuBlockJobDiskNewCommit(virDomainObjPtr vm,
|
||||
job->data.commit.top = top;
|
||||
job->data.commit.base = base;
|
||||
job->data.commit.deleteCommittedImages = delete_imgs;
|
||||
job->data.commit.disabledBitmapsBase = g_steal_pointer(disabledBitmapsBase);
|
||||
job->jobflags = jobflags;
|
||||
|
||||
if (qemuBlockJobRegister(job, vm, disk, true) < 0)
|
||||
|
@ -187,6 +187,7 @@ qemuBlockJobDiskNewCommit(virDomainObjPtr vm,
|
||||
virStorageSourcePtr topparent,
|
||||
virStorageSourcePtr top,
|
||||
virStorageSourcePtr base,
|
||||
char ***disabledBitmapsBase,
|
||||
bool delete_imgs,
|
||||
unsigned int jobflags);
|
||||
|
||||
|
@ -18556,7 +18556,7 @@ qemuDomainBlockCommit(virDomainPtr dom,
|
||||
}
|
||||
|
||||
if (!(job = qemuBlockJobDiskNewCommit(vm, disk, top_parent, topSource,
|
||||
baseSource,
|
||||
baseSource, NULL,
|
||||
flags & VIR_DOMAIN_BLOCK_COMMIT_DELETE,
|
||||
flags)))
|
||||
goto endjob;
|
||||
|
Loading…
Reference in New Issue
Block a user