aboutsummaryrefslogtreecommitdiffstats
path: root/tools/libxl/libxl_device.c
diff options
context:
space:
mode:
authorIan Campbell <ian.campbell@citrix.com>2011-10-18 13:36:42 +0100
committerIan Campbell <ian.campbell@citrix.com>2011-10-18 13:36:42 +0100
commit9d76e3ae60d8ddbe33e9dcccc6e0cd5a04309341 (patch)
treefc2878e15dcd698fcced8c6f99d02b16cf5f7839 /tools/libxl/libxl_device.c
parent08ae462e0656c7e5ecae9e4fa1d571ea9cd9e5b3 (diff)
downloadxen-9d76e3ae60d8ddbe33e9dcccc6e0cd5a04309341.tar.gz
xen-9d76e3ae60d8ddbe33e9dcccc6e0cd5a04309341.tar.bz2
xen-9d76e3ae60d8ddbe33e9dcccc6e0cd5a04309341.zip
libxl: do not remove unidentified frontend paths in libxl__devices_destroy
Currently this appears to only include "/local/domain/<domid>/device/suspend". Ultimately the caller will nuke the whole guest directory anyway but not having this function remove things which don't look like devices seems less surprising. Signed-off-by: Ian Campbell <ian.campbell@citrix.com> Acked-by: Ian Jackson <ian.jackson.citrix.com> Committed-by: Ian Jackson <ian.jackson.citrix.com>
Diffstat (limited to 'tools/libxl/libxl_device.c')
-rw-r--r--tools/libxl/libxl_device.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/tools/libxl/libxl_device.c b/tools/libxl/libxl_device.c
index 23f7d329f3..d96eaf37ef 100644
--- a/tools/libxl/libxl_device.c
+++ b/tools/libxl/libxl_device.c
@@ -463,8 +463,6 @@ int libxl__devices_destroy(libxl__gc *gc, uint32_t domid, int force)
if (libxl__device_remove(gc, be_path) > 0)
n_watches++;
}
- } else {
- xs_rm(ctx->xsh, XBT_NULL, path);
}
}
}