Re: [libvirt] [PATCHv2] virsh: fix no error when pass a count <= 0 to setvcpus

2015-10-22 Thread lhuang
On 10/22/2015 03:32 PM, Andrea Bolognani wrote: On Thu, 2015-10-22 at 11:27 +0800, Luyao Huang wrote: https://bugzilla.redhat.com/show_bug.cgi?id=1248277 When count <= 0, the client exit without set an error. Signed-off-by: Luyao Huang --- v2: - use vshCommandOptUInt to

Re: [libvirt] [PATCHv2] virsh: fix no error when pass a count <= 0 to setvcpus

2015-10-22 Thread Andrea Bolognani
On Thu, 2015-10-22 at 11:27 +0800, Luyao Huang wrote: > https://bugzilla.redhat.com/show_bug.cgi?id=1248277 > > When count <= 0, the client exit without set an error. > > Signed-off-by: Luyao Huang > --- > v2: > - use vshCommandOptUInt to forbid negative number, > and check

[libvirt] [PATCHv2] virsh: fix no error when pass a count <= 0 to setvcpus

2015-10-21 Thread Luyao Huang
https://bugzilla.redhat.com/show_bug.cgi?id=1248277 When count <= 0, the client exit without set an error. Signed-off-by: Luyao Huang --- v2: - use vshCommandOptUInt to forbid negative number, and check if count is zero. (thanks Peter and Andrea) tools/virsh-domain.c | 9