From: Roger Pau Monne <roger.pau@citrix.com>
To: xen-devel@lists.xen.org
Cc: Roger Pau Monne <roger.pau@citrix.com>
Subject: [PATCH 5/5] libxl: clean xenstore console directories recursively on destroy
Date: Mon, 16 Apr 2012 16:06:44 +0100 [thread overview]
Message-ID: <1334588804-7755-6-git-send-email-roger.pau@citrix.com> (raw)
In-Reply-To: <1334588804-7755-1-git-send-email-roger.pau@citrix.com>
Clean xenstore, to prevent leaving empty directories in the tree, like:
/local/domain/0/backend/console = "" (n0)
/local/domain/0/backend/console/3 = "" (n0)
That was left after a guest was destroyed.
Signed-off-by: Roger Pau Monne <roger.pau@citrix.com>
---
tools/libxl/libxl_device.c | 5 ++---
1 files changed, 2 insertions(+), 3 deletions(-)
diff --git a/tools/libxl/libxl_device.c b/tools/libxl/libxl_device.c
index d773d71..4161d1bd 100644
--- a/tools/libxl/libxl_device.c
+++ b/tools/libxl/libxl_device.c
@@ -609,12 +609,11 @@ out_ok:
int libxl__device_destroy(libxl__gc *gc, libxl__device *dev)
{
- libxl_ctx *ctx = libxl__gc_owner(gc);
char *be_path = libxl__device_backend_path(gc, dev);
char *fe_path = libxl__device_frontend_path(gc, dev);
- xs_rm(ctx->xsh, XBT_NULL, be_path);
- xs_rm(ctx->xsh, XBT_NULL, fe_path);
+ libxl__xs_path_cleanup(gc, fe_path);
+ libxl__xs_path_cleanup(gc, be_path);
libxl__device_destroy_tapdisk(gc, be_path);
--
1.7.7.5 (Apple Git-26)
next prev parent reply other threads:[~2012-04-16 15:06 UTC|newest]
Thread overview: 18+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-04-16 15:06 [PATCH 0/5] libxl: call hotplug scripts from libxl Roger Pau Monne
2012-04-16 15:06 ` [PATCH 1/5] libxl: allow libxl__exec to take a parameter containing the env variables Roger Pau Monne
2012-04-16 15:06 ` [PATCH 2/5] libxl: call hotplug scripts from libxl for vbd Roger Pau Monne
2012-04-16 16:44 ` Ian Campbell
2012-04-17 8:54 ` Roger Pau Monne
2012-04-17 8:56 ` Ian Campbell
2012-04-17 9:13 ` Roger Pau Monne
2012-04-16 15:06 ` [PATCH 3/5] libxl: call hotplug scripts from libxl for vif Roger Pau Monne
2012-04-16 15:06 ` [PATCH 4/5] libxl: add "downscript=no" to Qemu call Roger Pau Monne
2012-04-16 16:48 ` Ian Campbell
2012-04-16 15:06 ` Roger Pau Monne [this message]
2012-04-16 16:50 ` [PATCH 5/5] libxl: clean xenstore console directories recursively on destroy Ian Campbell
2012-04-16 17:05 ` Roger Pau Monne
2012-04-17 14:18 ` Roger Pau Monne
2012-04-17 14:21 ` Ian Campbell
2012-04-17 14:32 ` Roger Pau Monne
2012-04-17 14:37 ` Ian Campbell
2012-04-17 14:49 ` Roger Pau Monne
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=1334588804-7755-6-git-send-email-roger.pau@citrix.com \
--to=roger.pau@citrix.com \
--cc=xen-devel@lists.xen.org \
/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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).