[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [Xen-changelog] [xen-unstable] libxl: do not GC data returned to the caller by libxl_device_disk_getinfo.
# HG changeset patch # User Ian Campbell <ian.campbell@xxxxxxxxxx> # Date 1281969065 -3600 # Node ID 251dae6ee4a9946afcb678418233a2d7d5af2674 # Parent 82eeb70fb65cceadbed5356ffe728d93149e1343 libxl: do not GC data returned to the caller by libxl_device_disk_getinfo. Signed-off-by: Ian Campbell <ian.campbell@xxxxxxxxxx> Signed-off-by: Stefano Stabellini <stefano.stabellini@xxxxxxxxxxxxx> committer: Stefano Stabellini <stefano.stabellini@xxxxxxxxxxxxx> --- tools/libxl/libxl.c | 8 ++++---- 1 files changed, 4 insertions(+), 4 deletions(-) diff -r 82eeb70fb65c -r 251dae6ee4a9 tools/libxl/libxl.c --- a/tools/libxl/libxl.c Mon Aug 16 15:31:05 2010 +0100 +++ b/tools/libxl/libxl.c Mon Aug 16 15:31:05 2010 +0100 @@ -2501,8 +2501,8 @@ int libxl_device_disk_getinfo(libxl_ctx /* tap devices entries in xenstore are written as vbd devices. */ diskpath = libxl_sprintf(&gc, "%s/device/vbd/%d", dompath, diskinfo->devid); - diskinfo->backend = libxl_xs_read(&gc, XBT_NULL, - libxl_sprintf(&gc, "%s/backend", diskpath)); + diskinfo->backend = xs_read(ctx->xsh, XBT_NULL, + libxl_sprintf(&gc, "%s/backend", diskpath), NULL); if (!diskinfo->backend) { libxl_free_all(&gc); return ERROR_FAIL; @@ -2515,8 +2515,8 @@ int libxl_device_disk_getinfo(libxl_ctx diskinfo->evtch = val ? strtoul(val, NULL, 10) : -1; val = libxl_xs_read(&gc, XBT_NULL, libxl_sprintf(&gc, "%s/ring-ref", diskpath)); diskinfo->rref = val ? strtoul(val, NULL, 10) : -1; - diskinfo->frontend = libxl_xs_read(&gc, XBT_NULL, - libxl_sprintf(&gc, "%s/frontend", diskinfo->backend)); + diskinfo->frontend = xs_read(ctx->xsh, XBT_NULL, + libxl_sprintf(&gc, "%s/frontend", diskinfo->backend), NULL); val = libxl_xs_read(&gc, XBT_NULL, libxl_sprintf(&gc, "%s/frontend-id", diskinfo->backend)); diskinfo->frontend_id = val ? strtoul(val, NULL, 10) : -1; _______________________________________________ Xen-changelog mailing list Xen-changelog@xxxxxxxxxxxxxxxxxxx http://lists.xensource.com/xen-changelog
|
Lists.xenproject.org is hosted with RackSpace, monitoring our |