From: Juergen Gross <juergen.gross@ts.fujitsu.com>
To: Ian Campbell <ian.campbell@citrix.com>
Cc: ian.jackson@citrix.com, xen-devel@lists.xensource.com
Subject: Re: [PATCH 3 of 3] libxl: do not write/maintain "pool_name" in XenStore
Date: Tue, 24 Jan 2012 09:07:58 +0100 [thread overview]
Message-ID: <4F1E66DE.8030800@ts.fujitsu.com> (raw)
In-Reply-To: <d8efdb16b1ef06013061.1327329791@cosworth.uk.xensource.com>
On 01/23/2012 03:43 PM, Ian Campbell wrote:
> # HG changeset patch
> # User Ian Campbell<ian.campbell@citrix.com>
> # Date 1327329565 0
> # Node ID d8efdb16b1ef06013061da1f47c2dbce4b042992
> # Parent 10f5656caaaa2bdfd6a7ae9aada903da8bddcbb6
> 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@citrix.com>
Acked-by: juergen.gross@ts.fujitsu.com
> diff -r 10f5656caaaa -r d8efdb16b1ef tools/libxl/libxl.c
> --- a/tools/libxl/libxl.c Mon Jan 23 14:35:47 2012 +0000
> +++ b/tools/libxl/libxl.c Mon Jan 23 14:39:25 2012 +0000
> @@ -3434,16 +3434,6 @@ int libxl_cpupool_movedomain(libxl_ctx *
> {
> 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) {
> @@ -3453,21 +3443,6 @@ int libxl_cpupool_movedomain(libxl_ctx *
> 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 10f5656caaaa -r d8efdb16b1ef tools/libxl/libxl_create.c
> --- a/tools/libxl/libxl_create.c Mon Jan 23 14:35:47 2012 +0000
> +++ b/tools/libxl/libxl_create.c Mon Jan 23 14:39:25 2012 +0000
> @@ -438,9 +438,6 @@ retry_transaction:
>
> 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-devel mailing list
> Xen-devel@lists.xensource.com
> http://lists.xensource.com/xen-devel
>
>
--
Juergen Gross Principal Developer Operating Systems
PDG ES&S SWE OS6 Telephone: +49 (0) 89 3222 2967
Fujitsu Technology Solutions e-mail: juergen.gross@ts.fujitsu.com
Domagkstr. 28 Internet: ts.fujitsu.com
D-80807 Muenchen Company details: ts.fujitsu.com/imprint.html
prev parent reply other threads:[~2012-01-24 8:07 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-01-23 14:43 [PATCH 0 of 3] libxl: tweak the cpupool interface slightly Ian Campbell
2012-01-23 14:43 ` [PATCH 1 of 3] libxl: remove libxl_domain_create_info.poolname Ian Campbell
2012-01-24 7:21 ` Juergen Gross
2012-01-25 16:54 ` Ian Campbell
2012-01-23 14:43 ` [PATCH 2 of 3] libxl: name libxl_create_cpupool consistent with other functions Ian Campbell
2012-01-24 7:21 ` Juergen Gross
2012-01-23 14:43 ` [PATCH 3 of 3] libxl: do not write/maintain "pool_name" in XenStore Ian Campbell
2012-01-24 8:07 ` Juergen Gross [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=4F1E66DE.8030800@ts.fujitsu.com \
--to=juergen.gross@ts.fujitsu.com \
--cc=ian.campbell@citrix.com \
--cc=ian.jackson@citrix.com \
--cc=xen-devel@lists.xensource.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.