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

Re: [libvirt] [PATCH v2 09/14] libxl: support paused domain restore in virDomainRestoreFlags



Marek Marczykowski-Górecki wrote:
> Signed-off-by: Marek Marczykowski-Górecki <marmarek invisiblethingslab com>
> ---
>  src/libxl/libxl_driver.c | 4 ++--
>  1 file changed, 2 insertions(+), 2 deletions(-)
>
> diff --git a/src/libxl/libxl_driver.c b/src/libxl/libxl_driver.c
> index b2cff5b..8dec70b 100644
> --- a/src/libxl/libxl_driver.c
> +++ b/src/libxl/libxl_driver.c
> @@ -2305,7 +2305,7 @@ libxlDomainRestoreFlags(virConnectPtr conn, const char *from,
>      int fd = -1;
>      int ret = -1;
>  
> -    virCheckFlags(0, -1);
> +    virCheckFlags(VIR_DOMAIN_SAVE_PAUSED, -1);
>      if (dxml) {
>          virReportError(VIR_ERR_ARGUMENT_UNSUPPORTED, "%s",
>                         _("xml modification unsupported"));
> @@ -2327,7 +2327,7 @@ libxlDomainRestoreFlags(virConnectPtr conn, const char *from,
>  
>      def = NULL;
>  
> -    if ((ret = libxlVmStart(driver, vm, false, fd)) < 0 &&
> +    if ((ret = libxlVmStart(driver, vm, (flags & VIR_DOMAIN_SAVE_PAUSED) != 0, fd)) < 0 &&
>   

I changed this a bit to fit within 80 columns and pushed.

Regards,
Jim

>          !vm->persistent) {
>          virDomainObjListRemove(driver->domains, vm);
>          vm = NULL;
>   


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