]> git.proxmox.com Git - mirror_qemu.git/commit
block/gluster: return correct error value
authorJeff Cody <jcody@redhat.com>
Wed, 6 Apr 2016 03:11:34 +0000 (23:11 -0400)
committerJeff Cody <jcody@redhat.com>
Tue, 19 Apr 2016 16:24:59 +0000 (12:24 -0400)
commita882745356b17925b83c93d0b821adba8050236f
tree86fe803a086e022a714384c9ff2a8ae62fa73f90
parentd4dffa4a3f51b10cc0b7e6e34431919cac7a318e
block/gluster: return correct error value

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.

Reviewed-by: Niels de Vos <ndevos@redhat.com>
Signed-off-by: Jeff Cody <jcody@redhat.com>
block/gluster.c