[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [Xen-changelog] [xen-unstable] libxl: do not write/maintain "pool_name" in XenStore
# HG changeset patch # User Ian Campbell <ian.campbell@xxxxxxxxxx> # Date 1328020797 0 # Node ID 58a608e1a100d243352459a6a1ce95236ef832ce # Parent 66efe32847da7e266b537747ae7f7e6156b8dc3b libxl: do not write/maintain "pool_name" in XenStore Nothing that I can find ever reads this key. Signed-off-by: Ian Campbell <ian.campbell@xxxxxxxxxx> Acked-by: juergen.gross@xxxxxxxxxxxxxx Committed-by: Ian Jackson <Ian.Jackson@xxxxxxxxxxxxx> --- diff -r 66efe32847da -r 58a608e1a100 tools/libxl/libxl.c --- a/tools/libxl/libxl.c Tue Jan 31 14:39:57 2012 +0000 +++ b/tools/libxl/libxl.c Tue Jan 31 14:39:57 2012 +0000 @@ -3702,16 +3702,6 @@ { GC_INIT(ctx); int rc; - char *dom_path; - char *vm_path; - char *poolname; - xs_transaction_t t; - - dom_path = libxl__xs_get_dompath(gc, domid); - if (!dom_path) { - GC_FREE; - return ERROR_FAIL; - } rc = xc_cpupool_movedomain(ctx->xch, poolid, domid); if (rc) { @@ -3721,21 +3711,6 @@ return ERROR_FAIL; } - for (;;) { - t = xs_transaction_start(ctx->xsh); - - poolname = libxl__cpupoolid_to_name(gc, poolid); - vm_path = libxl__xs_read(gc, XBT_NULL, libxl__sprintf(gc, "%s/vm", dom_path)); - if (!vm_path) - break; - - libxl__xs_write(gc, t, libxl__sprintf(gc, "%s/pool_name", vm_path), - "%s", poolname); - - if (xs_transaction_end(ctx->xsh, t, 0) || (errno != EAGAIN)) - break; - } - GC_FREE; return 0; } diff -r 66efe32847da -r 58a608e1a100 tools/libxl/libxl_create.c --- a/tools/libxl/libxl_create.c Tue Jan 31 14:39:57 2012 +0000 +++ b/tools/libxl/libxl_create.c Tue Jan 31 14:39:57 2012 +0000 @@ -441,9 +441,6 @@ xs_write(ctx->xsh, t, libxl__sprintf(gc, "%s/uuid", vm_path), uuid_string, strlen(uuid_string)); xs_write(ctx->xsh, t, libxl__sprintf(gc, "%s/name", vm_path), info->name, strlen(info->name)); - if (info->poolid != -1) - libxl__xs_write(gc, t, libxl__sprintf(gc, "%s/pool_name", vm_path), - "%s", libxl__cpupoolid_to_name(gc, info->poolid)); libxl__xs_writev(gc, t, dom_path, info->xsdata); libxl__xs_writev(gc, t, libxl__sprintf(gc, "%s/platform", dom_path), info->platformdata); _______________________________________________ Xen-changelog mailing list Xen-changelog@xxxxxxxxxxxxxxxxxxx http://lists.xensource.com/xen-changelog
|
Lists.xenproject.org is hosted with RackSpace, monitoring our |