Re: [Qemu-devel] [PATCH v2 1/3] xen: fix usage of ENODATA

2014-05-28 Thread Stefano Stabellini
On Tue, 27 May 2014, Roger Pau Monné wrote: > On 27/05/14 18:18, Stefano Stabellini wrote: > > On Fri, 23 May 2014, Roger Pau Monne wrote: > >> ENODATA doesn't exist on FreeBSD, so ENODATA errors returned by the > >> hypervisor are translated to ENOENT. > >> > >> Also, the error code is returned in

Re: [Qemu-devel] [PATCH v2 1/3] xen: fix usage of ENODATA

2014-05-27 Thread Roger Pau Monné
On 27/05/14 18:18, Stefano Stabellini wrote: > On Fri, 23 May 2014, Roger Pau Monne wrote: >> ENODATA doesn't exist on FreeBSD, so ENODATA errors returned by the >> hypervisor are translated to ENOENT. >> >> Also, the error code is returned in errno if the call returns -1, so >> compare the error c

Re: [Qemu-devel] [PATCH v2 1/3] xen: fix usage of ENODATA

2014-05-27 Thread Stefano Stabellini
On Fri, 23 May 2014, Roger Pau Monne wrote: > ENODATA doesn't exist on FreeBSD, so ENODATA errors returned by the > hypervisor are translated to ENOENT. > > Also, the error code is returned in errno if the call returns -1, so > compare the error code with the value in errno instead of the value >

[Qemu-devel] [PATCH v2 1/3] xen: fix usage of ENODATA

2014-05-23 Thread Roger Pau Monne
ENODATA doesn't exist on FreeBSD, so ENODATA errors returned by the hypervisor are translated to ENOENT. Also, the error code is returned in errno if the call returns -1, so compare the error code with the value in errno instead of the value returned by the function. Signed-off-by: Roger Pau Monn