[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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



# HG changeset patch
# User Ian Campbell <ian.campbell@xxxxxxxxxx>
# Date 1318498260 -3600
# Node ID 7418ade6ebe0750d00d5e26d8593a6d75f072d3b
# Parent  adfde25db7a193196b411870ba7b7af02d007f1a
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.citrix.com>
Committed-by: Ian Jackson <ian.jackson.citrix.com>
---


diff -r adfde25db7a1 -r 7418ade6ebe0 tools/libxl/libxl.c
--- a/tools/libxl/libxl.c       Fri Oct 07 11:27:02 2011 +0100
+++ b/tools/libxl/libxl.c       Thu Oct 13 10:31:00 2011 +0100
@@ -929,6 +929,9 @@
     rc = libxl__device_disk_set_backend(&gc, disk);
     if (rc) goto out;
 
+    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
Xen-changelog@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-changelog


 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.