mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2024-12-25 01:34:11 +03:00
vz: unlock dom until resize operation
We have to use waitDomainJob instead of waitJob, because of it unlock the domain until job has finished, so domain will be available for other clients. Signed-off-by: Konstantin Neumoin <kneumoin@virtuozzo.com>
This commit is contained in:
parent
3fe624b268
commit
0c5d5cb959
@ -4952,7 +4952,7 @@ int prlsdkResizeImage(virDomainObjPtr dom, virDomainDiskDefPtr disk,
|
||||
|
||||
job = PrlVmDev_ResizeImage(prldisk, newsize,
|
||||
PRIF_RESIZE_LAST_PARTITION);
|
||||
if (PRL_FAILED(waitJob(job)))
|
||||
if (PRL_FAILED(waitDomainJob(job, dom)))
|
||||
goto cleanup;
|
||||
|
||||
ret = 0;
|
||||
|
Loading…
Reference in New Issue
Block a user