Re: [libvirt] [PATCHv2] virsh: fix no error output when parse cpulist fail

2015-05-14 Thread Michal Privoznik
On 11.05.2015 10:25, Luyao Huang wrote: When we pass a invalid cpulist or the lastcpu in the cpulist exceed the maxcpu, we cannot get any error. like this: # virsh vcpupin test3 1 aaa # virsh vcpupin test3 1 1000 Because virBitmapParse() use virReportError() to set the error

Re: [libvirt] [PATCHv2] virsh: fix no error output when parse cpulist fail

2015-05-14 Thread lhuang
On 05/14/2015 08:33 PM, Michal Privoznik wrote: On 11.05.2015 10:25, Luyao Huang wrote: When we pass a invalid cpulist or the lastcpu in the cpulist exceed the maxcpu, we cannot get any error. like this: # virsh vcpupin test3 1 aaa # virsh vcpupin test3 1 1000 Because virBitmapParse()

[libvirt] [PATCHv2] virsh: fix no error output when parse cpulist fail

2015-05-11 Thread Luyao Huang
When we pass a invalid cpulist or the lastcpu in the cpulist exceed the maxcpu, we cannot get any error. like this: # virsh vcpupin test3 1 aaa # virsh vcpupin test3 1 1000 Because virBitmapParse() use virReportError() to set the error message, vshCommandRun would output the error in