[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [Xen-devel] [PATCH RFC 6/9] libxl: introduce specific error code for libxl__wait_device_connection
Signed-off-by: Rob Hoes <rob.hoes@xxxxxxxxxx> --- tools/libxl/libxl_device.c | 1 + tools/libxl/libxl_types.idl | 3 +++ 2 files changed, 4 insertions(+) diff --git a/tools/libxl/libxl_device.c b/tools/libxl/libxl_device.c index 93bb41e..56c6e2e 100644 --- a/tools/libxl/libxl_device.c +++ b/tools/libxl/libxl_device.c @@ -768,6 +768,7 @@ void libxl__wait_device_connection(libxl__egc *egc, libxl__ao_device *aodev) LIBXL_INIT_TIMEOUT * 1000); if (rc) { LOG(ERROR, "unable to initialize device %s", be_path); + rc = ERROR_DEVICE_WAIT_INIT; goto out; } diff --git a/tools/libxl/libxl_types.idl b/tools/libxl/libxl_types.idl index b905353..3c44b41 100644 --- a/tools/libxl/libxl_types.idl +++ b/tools/libxl/libxl_types.idl @@ -122,6 +122,9 @@ libxl_error = Enumeration("error", [ (ENUM_PREV, "JSON_GET_CONFIG"), (ENUM_PREV, "JSON_SET_CONFIG"), (ENUM_PREV, "JSON_PARSE_CONFIG"), + + # Unable to initialise device connection watch + (ENUM_PREV, "DEVICE_WAIT_INIT"), ], value_namespace = "") libxl_domain_type = Enumeration("domain_type", [ -- 2.4.1 _______________________________________________ Xen-devel mailing list Xen-devel@xxxxxxxxxxxxx http://lists.xen.org/xen-devel
|
Lists.xenproject.org is hosted with RackSpace, monitoring our |