From 9d76e3ae60d8ddbe33e9dcccc6e0cd5a04309341 Mon Sep 17 00:00:00 2001 From: Ian Campbell Date: Tue, 18 Oct 2011 13:36:42 +0100 Subject: [PATCH] libxl: do not remove unidentified frontend paths in libxl__devices_destroy Currently this appears to only include "/local/domain//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 Acked-by: Ian Jackson Committed-by: Ian Jackson --- tools/libxl/libxl_device.c | 2 -- 1 file changed, 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); } } } -- 2.30.2