Stefano Stabellini
2011-Feb-17 12:24 UTC
[Xen-devel] [PATCH] libxl: create xenstore backend for empty disks
We still need to create the vbd backend in xenstore even if the disk format is DISK_FORMAT_EMPTY. Signed-off-by: Stefano Stabellini <stefano.stabellini@eu.citrix.com> diff -r d90cbea3df03 tools/libxl/libxl.c --- a/tools/libxl/libxl.c Wed Feb 16 19:49:14 2011 +0000 +++ b/tools/libxl/libxl.c Wed Feb 16 20:51:07 2011 +0000 @@ -953,9 +953,7 @@ int libxl_device_disk_add(libxl_ctx *ctx break; case DISK_BACKEND_TAP: case DISK_BACKEND_QDISK: - if (disk->format == DISK_FORMAT_EMPTY) - break; - if (libxl__blktap_enabled(&gc)) { + if (libxl__blktap_enabled(&gc) && disk->format != DISK_FORMAT_EMPTY) { const char *dev = libxl__blktap_devpath(&gc, disk->pdev_path, disk->format); if (!dev) { _______________________________________________ Xen-devel mailing list Xen-devel@lists.xensource.com http://lists.xensource.com/xen-devel
Ian Jackson
2011-Feb-17 19:50 UTC
Re: [Xen-devel] [PATCH] libxl: create xenstore backend for empty disks
Stefano Stabellini writes ("[Xen-devel] [PATCH] libxl: create xenstore backend for empty disks"):> We still need to create the vbd backend in xenstore even if the disk > format is DISK_FORMAT_EMPTY.Applied, thanks. Ian. _______________________________________________ Xen-devel mailing list Xen-devel@lists.xensource.com http://lists.xensource.com/xen-devel