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

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

 




On 26.05.2016 13:15, Maxim Nestratov wrote:
> Map PRL_ERR_UNIMPLEMENTED to VIR_ERR_OPERATION_INVALID
> 
> Signed-off-by: Maxim Nestratov <mnestratov@xxxxxxxxxxxxx>
> ---
>  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

--
libvir-list mailing list
libvir-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/libvir-list



[Index of Archives]     [Virt Tools]     [Libvirt Users]     [Lib OS Info]     [Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [KDE Users]     [Fedora Tools]