[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

Re: [libvirt] [PATCH 1/1] vz: unlock dom until resize operation




On 03.05.2017 14:23, Konstantin Neumoin wrote:
> 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>
> ---
>  src/vz/vz_sdk.c | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/src/vz/vz_sdk.c b/src/vz/vz_sdk.c
> index bc1a9eb..79b356d 100644
> --- a/src/vz/vz_sdk.c
> +++ b/src/vz/vz_sdk.c
> @@ -4993,7 +4993,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;
> 

ACK


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]