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-4.1-testing] libxl: do not try to use blktap with q

To: xen-changelog@xxxxxxxxxxxxxxxxxxx
Subject: [Xen-changelog] [xen-4.1-testing] libxl: do not try to use blktap with qdisk
From: Xen patchbot-4.1-testing <patchbot@xxxxxxx>
Date: Mon, 14 Mar 2011 13:25:09 +0000
Delivery-date: Mon, 14 Mar 2011 06:25:24 -0700
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 Ian Jackson <Ian.Jackson@xxxxxxxxxxxxx>
# Date 1299868515 0
# Node ID 4f5534517e080fcdcf24049fbf2ef33210bacb7d
# Parent  0cd188ac8961e314656708e83ffdc7fa39aa7efd
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.

Signed-off-by: Stefano Stabellini <stefano.stabellini@xxxxxxxxxxxxx>
Acked-by: Ian Jackson <ian.jackson@xxxxxxxxxxxxx>
Committed-by: Ian Jackson <ian.jackson@xxxxxxxxxxxxx>

(cherry-picked from xen-unstable
 changeset a8fee4ad3ad0650e7a5cc0fb253c6a0ada1ac583)
---


diff -r 0cd188ac8961 -r 4f5534517e08 tools/libxl/libxl.c
--- a/tools/libxl/libxl.c       Fri Mar 11 17:33:30 2011 +0000
+++ b/tools/libxl/libxl.c       Fri Mar 11 18:35:15 2011 +0000
@@ -966,7 +966,6 @@
             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 @@
 
                 break;
             }
+        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));

_______________________________________________
Xen-changelog mailing list
Xen-changelog@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-changelog

<Prev in Thread] Current Thread [Next in Thread>
  • [Xen-changelog] [xen-4.1-testing] libxl: do not try to use blktap with qdisk, Xen patchbot-4 . 1-testing <=