Re: [Qemu-devel] [PATCH for-2.6 1/2] block/gluster: return correct error value

2016-04-06 Thread Niels de Vos
On Tue, Apr 05, 2016 at 11:29:51PM -0400, Jeff Cody wrote: > Upon error, gluster will call the aio callback function with a > ret value of -1, with errno set to the proper error value. If > we set the acb->ret value to the return value in the callback, > that results in every error being EPERM (i.

[Qemu-devel] [PATCH for-2.6 1/2] block/gluster: return correct error value

2016-04-05 Thread Jeff Cody
Upon error, gluster will call the aio callback function with a ret value of -1, with errno set to the proper error value. If we set the acb->ret value to the return value in the callback, that results in every error being EPERM (i.e. 1). Instead, set it to the proper error result. Signed-off-by: