search for: libxl_xs_directory

Displaying 3 results from an estimated 3 matches for "libxl_xs_directory".

2010 Aug 12
0
[PATCH, v2]: xl: Implement per-API-call garbage-collection lifetime
...out_free; + } if (nic->devid == -1) { - if (!(dompath = libxl_xs_get_dompath(ctx, domid))) { - return ERROR_FAIL; + if (!(dompath = libxl_xs_get_dompath(&gc, domid))) { + rc = ERROR_FAIL; + goto out_free; } - if (!(l = libxl_xs_directory(ctx, XBT_NULL, - libxl_sprintf(ctx, "%s/device/vif", dompath), &nb))) { + if (!(l = libxl_xs_directory(&gc, XBT_NULL, + libxl_sprintf(&gc, "%s/device/vif", dompath), &nb))) {...
2010 Sep 02
7
[PATCH] libxl: make libxl communicate with xenstored by socket or xenbus driver
Hi, George sent a patch on this problem before, but it was not completed. This patch makes libxl use xenbus to communicate with xenstored if libxl cannot open a socket. There''s a place that does not close fd in the case of failure, which is also fixed in this patch. -----------------------------------------Patch------------------------------------------------------ diff -r eff592364826
2009 Nov 18
6
[PATCH 1/3] libxenlight: Clean up logging arrangements
...t;, errno); + XL_LOG_ERRNO(ctx, XL_LOG_ERROR, "xs transaction failed"); } return 0; } @@ -213,7 +213,7 @@ int libxl_devices_destroy(struct libxl_ctx *ctx, uint32_t domid, int force) path = libxl_sprintf(ctx, "/local/domain/%d/device", domid); l1 = libxl_xs_directory(ctx, XBT_NULL, path, &num1); if (!l1) { - XL_LOG(ctx, XL_LOG_ERROR, "%s is empty\n", path); + XL_LOG(ctx, XL_LOG_ERROR, "%s is empty", path); return -1; } for (i = 0; i < num1; i++) { @@ -248,7 +248,7 @@ int libxl_devices_destroy(stru...