libxl: do not try to use blktap with qdisk
PATCH 1/1 libxl: do not try to use blktap with qdisk
libxl_device_disk_add tries to use blktap when available even for qdisk devices, this patch fixes it.
This patch should be applied to xen 4.1.
Signed-off-by Stefano Stabellini <[email protected]>
tools/libxl/libxl.c +1 -1
@@ -966,7 +966,6 @@ int libxl_device_disk_add(libxl_ctx *ctx device.backend_kind =DEVICE_VBD ;break ;case DISK_BACKEND_TAP : -case DISK_BACKEND_QDISK :if (libxl__blktap_enabled (&gc) && disk->format !=DISK_FORMAT_EMPTY ) {const char *dev =libxl__blktap_devpath (&gc, disk->pdev_path, disk->format);
@@ -988,6 +987,7 @@ int libxl_device_disk_add(libxl_ctx *ctxbreak ; } +case DISK_BACKEND_QDISK :flexarray_append (back,"params" );flexarray_append (back,libxl__sprintf (&gc,"%s:%s" ,libxl__device_disk_string_of_format (disk->format), disk->pdev_path));
Stefano Stabellini writes ("[Xen-devel] [PATCH] libxl: do not try to use blktap with qdisk"):
Quoted 3 lines
libxl_device_disk_addtries to use blktap when available even for qdisk devices, this patch fixes it.
This patch should be applied to xen 4.1.
Thanks, acked and applied to unstable and 4.1.
Ian.