Re: [PATCH] rpc: improve error message for bounds check

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

 



On 05/11/2017 12:25 PM, Daniel P. Berrange wrote:
> If we exceed a fixed limit in RPC code we get a horrible message
> like this, if the parameter type is a 'string', because we forgot
> to initialize the error message type field:
> 
>   $ virsh snapshot-list ostack1
>   error: too many remote undefineds: 1329 > 1024
> 
> It would also be useful to know which RPC call and field was
> exceeded. So this patch makes us report:
> 
>   $ virsh snapshot-list ostack1
>   error: too many remote undefineds: 1329 > 1024,
>   in parameter 'names' for 'virDomainSnapshotListNames'
> 
> Signed-off-by: Daniel P. Berrange <berrange@xxxxxxxxxx>
> ---
>  src/rpc/gendispatch.pl | 7 +++++--
>  1 file changed, 5 insertions(+), 2 deletions(-)

ACK

Michal

--
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]
  Powered by Linux