]> xenbits.xensource.com Git - xen.git/commit
libxl: ao: datacopier callback gets an rc
authorIan Jackson <ian.jackson@eu.citrix.com>
Tue, 10 Feb 2015 19:37:33 +0000 (19:37 +0000)
committerIan Jackson <Ian.Jackson@eu.citrix.com>
Fri, 26 Jun 2015 15:53:51 +0000 (16:53 +0100)
commitc3c8da9f5e731c518fcfb798beeaea9e8ccfad40
treef4e39e9eedb45ca6cde502884dc8276e62a737fe
parente12dade76a5a2d5001db3351835f443abae0ca2a
libxl: ao: datacopier callback gets an rc

libxl__datacopier_* now provides its caller's callback function with
an rc value.  This relieves the caller of the need to figure out an
appropriate rc value.

Arrange that the `other internal failure' cases now get a valid
positive errno value (EIO).

In a few places, assert that errno is nonzero before passing it to our
caller.

Extend the datacopier callback API to permit the dc to signal ABORTED.
(It doesn't actually do this yet, though.)

Signed-off-by: Ian Jackson <ian.jackson@eu.citrix.com>
Acked-by: Ian Campbell <ian.campbell@citrix.com>
CC: Andrew Cooper <andrew.cooper3@citrix.com>
CC: David Vrabel <david.vrabel@citrix.com>
---
v2: New in this version of the series.
tools/libxl/libxl_aoutils.c
tools/libxl/libxl_bootloader.c
tools/libxl/libxl_dom.c
tools/libxl/libxl_internal.h