From: Ian Campbell Date: Tue, 18 Oct 2011 12:36:42 +0000 (+0100) Subject: libxl: do not remove unidentified frontend paths in libxl__devices_destroy X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=9d76e3ae60d8ddbe33e9dcccc6e0cd5a04309341;p=xen.git 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 --- 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); } } }