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

Re: [libvirt] [PATCH 4/4] vz: return correct result for unimplemented ChangeState actions




On 26.05.2016 13:15, Maxim Nestratov wrote:
> Map PRL_ERR_UNIMPLEMENTED to VIR_ERR_OPERATION_INVALID
> 
> Signed-off-by: Maxim Nestratov <mnestratov virtuozzo com>
> ---
>  src/vz/vz_sdk.c | 1 +
>  1 file changed, 1 insertion(+)
> 
> diff --git a/src/vz/vz_sdk.c b/src/vz/vz_sdk.c
> index bad4ddd..94ed35e 100644
> --- a/src/vz/vz_sdk.c
> +++ b/src/vz/vz_sdk.c
> @@ -2052,6 +2052,7 @@ prlsdkDomainChangeStateLocked(vzDriverPtr driver,
>          case PRL_ERR_DISP_VM_IS_NOT_STARTED:
>          case PRL_ERR_DISP_VM_IS_NOT_STOPPED:
>          case PRL_ERR_INVALID_ACTION_REQUESTED:
> +        case PRL_ERR_UNIMPLEMENTED:
>              virerr = VIR_ERR_OPERATION_INVALID;
>              break;
>          default:
> 

ACK


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