WARNING - OLD ARCHIVES

This is an archived copy of the Xen.org mailing list, which we have preserved to ensure that existing links to archives are not broken. The live archive, which contains the latest emails, can be found at http://lists.xen.org/
   
 
 
Xen 
 
Home Products Support Community News
 
   
 

xen-changelog

[Xen-changelog] [xen-unstable] libxl: create xenstore backend for empty

To: xen-changelog@xxxxxxxxxxxxxxxxxxx
Subject: [Xen-changelog] [xen-unstable] libxl: create xenstore backend for empty disks
From: Xen patchbot-unstable <patchbot@xxxxxxx>
Date: Fri, 18 Feb 2011 01:50:20 -0800
Delivery-date: Fri, 18 Feb 2011 01:51:11 -0800
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
List-help: <mailto:xen-changelog-request@lists.xensource.com?subject=help>
List-id: BK change log <xen-changelog.lists.xensource.com>
List-post: <mailto:xen-changelog@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/mailman/listinfo/xen-changelog>, <mailto:xen-changelog-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/mailman/listinfo/xen-changelog>, <mailto:xen-changelog-request@lists.xensource.com?subject=unsubscribe>
Reply-to: xen-devel@xxxxxxxxxxxxxxxxxxx
Sender: xen-changelog-bounces@xxxxxxxxxxxxxxxxxxx
# HG changeset patch
# User Stefano Stabellini <stefano.stabellini@xxxxxxxxxxxxx>
# Date 1297972197 0
# Node ID fd61708757180a05a4690764732e7be55bcc6772
# Parent  0e52f58dead5f54d62e124ad1c2e84ca567af663
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@xxxxxxxxxxxxx>
Committed-by: Ian Jackson <ian.jackson@xxxxxxxxxxxxx>
---
 tools/libxl/libxl.c |    4 +---
 1 files changed, 1 insertion(+), 3 deletions(-)

diff -r 0e52f58dead5 -r fd6170875718 tools/libxl/libxl.c
--- a/tools/libxl/libxl.c       Thu Feb 17 19:49:00 2011 +0000
+++ b/tools/libxl/libxl.c       Thu Feb 17 19:49:57 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-changelog mailing list
Xen-changelog@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-changelog

<Prev in Thread] Current Thread [Next in Thread>
  • [Xen-changelog] [xen-unstable] libxl: create xenstore backend for empty disks, Xen patchbot-unstable <=