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/
Home Products Support Community News


[Xen-changelog] [xen-unstable] libxl: probe disk backend type in libxl_d

To: xen-changelog@xxxxxxxxxxxxxxxxxxx
Subject: [Xen-changelog] [xen-unstable] libxl: probe disk backend type in libxl_device_disk_add
From: Xen patchbot-unstable <patchbot@xxxxxxx>
Date: Fri, 07 Oct 2011 00:22:21 +0100
Delivery-date: Thu, 06 Oct 2011 16:23:58 -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 Campbell <ian.campbell@xxxxxxxxxx>
# Date 1317914386 -3600
# Node ID abd34aba46a3784b176db26af2721ed7277c9c49
# Parent  3be536f7001f1521ad11d54a84338db45bad8d8f
libxl: probe disk backend type in libxl_device_disk_add

Without this "xl block-attach" does not work. On create do_domain_create already
catches this.

Signed-off-by: Ian Campbell <ian.campbell@xxxxxxxxxx>
Acked-by: Ian Jackson <ian.jackson@xxxxxxxxxxxxx>
Committed-by: Ian Jackson <ian.jackson@xxxxxxxxxxxxx>

diff -r 3be536f7001f -r abd34aba46a3 tools/libxl/libxl.c
--- a/tools/libxl/libxl.c       Thu Oct 06 16:19:03 2011 +0100
+++ b/tools/libxl/libxl.c       Thu Oct 06 16:19:46 2011 +0100
@@ -926,6 +926,9 @@
     libxl__device device;
     int major, minor, rc;
+    rc = libxl__device_disk_set_backend(&gc, disk);
+    if (rc) goto out;
     front = flexarray_make(16, 1);
     if (!front) {
         rc = ERROR_NOMEM;

Xen-changelog mailing list

<Prev in Thread] Current Thread [Next in Thread>