[Libvir] [PATCH] Check a value in vshCommandOptInt()

2007-08-16 Thread Masayuki Sunou
Hi When the option which should set a number is set a character which is not a number, the value is changed into 0 in libvirt. It causes the movement not expected. ex) # virsh vcpupin dom_name A 0,1 = VCPU0 is pinned without the command becoming the error. This patch fixes it by checking the

Re: [Libvir] [PATCH] Check a value in vshCommandOptInt()

2007-08-16 Thread Daniel Veillard
On Thu, Aug 16, 2007 at 05:30:36PM +0900, Masayuki Sunou wrote: Hi When the option which should set a number is set a character which is not a number, the value is changed into 0 in libvirt. It causes the movement not expected. ex) # virsh vcpupin dom_name A 0,1 = VCPU0 is pinned

Re: [Libvir] [PATCH] Check the version of Xen in xenDaemonAttachDevice()

2007-08-16 Thread Daniel Veillard
On Thu, Aug 16, 2007 at 05:41:47PM +0900, Masayuki Sunou wrote: Hi When virsh attach-disk/attach-interface is executed in Xen 3.0.4, the OS type of domain is NULL in xenDaemonAttachDevice(). As a result, the command becomes segmentation fault. This patch fixes it by checking the version