Skip to contentSkip to conversation

libxl: create xenstore backend for empty disks

PATCH Applied Stefano Stabellini 2 participants 2 messages Feb 17, 2011

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 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.

tools/libxl/libxl.c +1 -3
diff -r d90cbea3df03 tools/libxl/libxl.c
@@ -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) {
Applied
#1 lore raw

Stefano Stabellini writes ("[Xen-devel] [PATCH] libxl: create xenstore backend for empty disks"):

Quoted 2 lines

We still need to create the vbd backend in xenstore even if the disk format is DISK_FORMAT_EMPTY.

Applied, thanks.

Ian.